Page 1 of 1

Viewing array for testing

Posted: Fri May 11, 2012 8:24 am
by bqsbarbqGAnC5Z
Hi everyone,

I was wondering if there was any way for me to view an array while my application is running. I've been running into a problem with my array and I want to see what is actually happening in there while I test it. Is there any way for me to do this? Thanks for your help!

Re: Viewing array for testing

Posted: Fri May 11, 2012 10:57 am
by Mark
Hi,

When the debugger is active, you can view your array in the variables tab at the bottom of the script editor.

Kind regards,

Mark

Re: Viewing array for testing

Posted: Fri May 11, 2012 4:03 pm
by dunbarx
HI.

As Mark says, the debugger shows the keys and elements of an array directly, but only when a script is being examined. This is very convenient.

But you said "while running". In this case you will need to view the array, perhaps in a field or dataGrid, on the fly.

So in your running handler, in the right place(s):

combine yourArray by return and tab
put yourArray into fld "viewArray"

The array will appear every time the code snippet is executed, which could be each pass through a loop, or wherever.

Craig Newman

Re: Viewing array for testing

Posted: Sat May 12, 2012 4:45 am
by bqsbarbqGAnC5Z
Whoa awesome, I didn't even notice the Variables tab down there before you mentioned it. Thanks for the replies, Mark and Craig, this is perfect!