Array in Variable Watcher

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
bjb007
Posts: 313
Joined: Fri Dec 28, 2007 4:56 am

Array in Variable Watcher

Post by bjb007 » Fri Feb 15, 2008 1:51 pm

In the Variable Watcher I can only see one value
of an array (which has four values in it).

Is there any way I can see all four values at the
same time?

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Fri Feb 15, 2008 4:21 pm

Dear bjb007,

You shouldn't see a value, you should see "<array>". When you click on the line containing the variable name, the bottom of the variable watcher should give you a table with key names on the left and the contents of the elements on the right.

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

bjb007
Posts: 313
Joined: Fri Dec 28, 2007 4:56 am

Array in Variable Watcher

Post by bjb007 » Fri Feb 15, 2008 6:22 pm

Mark

Might have been something to do with visibility of the array -
my other post about Global refers.

Fixed "global" declaration and can now see all elements
of the array!

Thanks again.

Why is it that when something doesn't work as expected
it's always my fault?

Klaus
Posts: 14194
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Array in Variable Watcher

Post by Klaus » Fri Feb 15, 2008 7:01 pm

bjb007 wrote:...
Why is it that when something doesn't work as expected
it's always my fault?
Our good education prohibits further comments ;-)


Best

Klaus

bjb007
Posts: 313
Joined: Fri Dec 28, 2007 4:56 am

Array in Variable Watcher

Post by bjb007 » Fri Feb 15, 2008 7:13 pm

I feel a persecution complex coming on.

Post Reply