I'm writing some code to read in a CSV or copy data from the Clipboard.
I'll be storing in a 2 dimensional array
Is there quick way of inspecting the array?
I can't just print the array?
I need something quick so I can inspect the contents of arrays
When I googled I found the best solution was to make strings and output in msgbox.
Surely there has to be a better way?
Why is there not a built in method where you can just: print array?
Thanks
Best way to output an array to inspect contents
Re: Best way to output an array to inspect contents
I don't know of a builtin "print array" command/feature. I personally created an ArrayToStr() function in my CommonFunc.ahk (in my library) for this. I can specify the preferred deliminator with each call. That way I can just call the function to view the contents easily, without having to write the code each time I need it.
If you don't fancy the string idea, which format do you envision the output being in?
Re: Best way to output an array to inspect contents
biga.ahk has .print which sends directly to standard output device like Visual Studio Code uses
Re: Best way to output an array to inspect contents
So far, everything you have described can be done very easily by just loading the CSV into Excel, LibreCalc or Google sheets. You have not described anything (yet) that would require an AHK script.
Russ
Russ