Jump to content

Recursive _ArrayDisplay and _DebugArrayDisplay


Nine
 Share

Recommended Posts

@Nine one question : when you scripted the UDF, did you have in mind that getting rid of subclassing WM_NOTIFY could create issues (I guess) in case the user already registered WM_NOTIFY in his own script ?

Just curious, as always :)

 

Edited by pixelsearch
deleted a pic which was not really useful for this thread
Link to comment
Share on other sites

18 hours ago, pixelsearch said:

that getting rid of subclassing WM_NOTIFY could create issues

The major problem with subclassing is that you absolutely need to unregister the subclass before ending a script (all levels), otherwise the script hangs with a crash.

If you have registered WM_NOTIFY with GUIRegisterMsg, you simply need to reexecute the registration after a call to the UDF

_ArrayDisplayEX($My_Array)
GUIRegisterMsg($WM_NOTIFY, My_WM_NOTIFY)

Btw I will implement your solution on null cells in the next release of my UDF... TX

 

Edited by Nine
Link to comment
Share on other sites

  • 2 years later...

@Nine Hello
I knew your script "Recursive _ArrayDisplay" would be useful at times :)

For example, it helps to see what's happening when you send a request to Google for translating a text, then you can display the nested arrays with your script :

Detectlanguage(Chinesetext)toGerman.png.40d70bb185a98ca9f30edef3fa0897bb.png

I added a couple of lines in it, to match the good functionality of the actual _ArrayDisplay function which indicates the number of [rows] and eventually [columns] of the array (when 2D), though I just created a trac ticket 4019 because something seems wrong in ArrayDisplayInternals.au3

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...