Search the Community
Showing results for tags '2darray'.
Hi, It's been a while since I've used AutoIt, but I'm having fun with it again. I'm running on Windows 7 Pro, 64_bit. with AutoIt 18.104.22.168+ In my program, I've called Winlist(), so that I can get a list of all windows on the system. I then iterate through the titles, and attempt to copy the title & handle of Windows I'm specifically interested in. While this seems to be a very easy task, I'm having a strange problem copying the title & handle of the two windows that I'm interested in. In the For loop: For $i = 1 To $AllWindowsCount C
I get a database result back as sometimes as single array and sometimes multi array (I understand that is bad practice in general and I am trying to fix that, because there are some errors in my database) but how can I error handle the best way or determine when something is single or multi array without making my script to break? I am very poor at @error handling in such cases for example $ncatid = $array (because it is the answer i got back from database is multi array, that is because the item is unfortunate stored double which i am trying to fix