comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » strange behaviour of .skip command
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
strange behaviour of .skip command [message #60377] Wed, 14 May 2008 16:43
manodeep@gmail.com is currently offline  manodeep@gmail.com
Messages: 33
Registered: June 2006
Member
Hello everyone,

In the fine tradition of *trying* to get things done quick, I have a
code segment that looks like :

if {some condition} then begin
.
.
{some random text to make the code break}

endif else begin
.
.
endelse

The code breaks at the random text, I check for the variables and
conditions that were set in the "if part", and if all is well, I issue
a .skip and a .continue. Now, it turns out that under such conditions
(if the random text is located right before the endif statement), the
code execution actually proceeds through the else-endelse segment as
well. However, if there is any other statement between the random text
and the endif statement, then the code execution does not go into the
else-endelse segment.

Granted this is quite an unique situation to find oneself in, but
having spent the better part of a day trying to track this down, I
thought I would check with the group and see if this was a
reproducible behaviour.

Is my understanding of .skip incorrect ? Does it skip through more
than 1 line even when invoked without an additional parameter ?

In any case, it boggles my mind seeing code go through both the "if"
and "else" part in one execution !

Cheers,
Manodeep
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: pState structure without widgets?
Next Topic: Color Tools Update

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:17:02 PDT 2025

Total time taken to generate the page: 0.15911 seconds