Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread Curiosity - Overrunning Grid/cell Boundries
Mon, Jul 27 2015 7:17 AMPermanent Link

squiffy

Telemix Ltd.

Avatar

Just a curiosity ...
I just created a grid and tried to access a row too far (for i=0 to 5 instead of for i=0 to 4)
The symptom was that the for loop seemed to run ok, but no code after is executed, it just silently dies.

Of course my code was flawed - i should have done for i=0 to rowcount-1 and I can't expect the IDE to solve all my mistakes. But I was just wondering if the execution was really as silent as it appeared or whether there is a way for the ide to help me when i make silly mistakes like that.

Cheers,
Mon, Jul 27 2015 4:41 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

<< I just created a grid and tried to access a row too far (for i=0 to 5 instead of for i=0 to 4)
The symptom was that the for loop seemed to run ok, but no code after is executed, it just silently dies. >>

Where was the code ?  If the code is executed during loading/unloading of the application, then the browser will, by default, eat the JS exceptions.

The easiest way to test if this is the issue is to move the offending code to a button OnClick event handler that you can press at runtime *after* loading.  If you see an error, then the issue was the exception suppression by the browser.

Tim Young
Elevate Software
www.elevatesoft.com
Image