More specific question on @SK

Jeff Harrison jeffaharrison at yahoo.com
Sat Aug 13 18:52:25 PDT 2011


----- Original Message -----

> From: Kenneth Brody <kenbrody at spamcop.net>
> To: Jeff Harrison <jeffaharrison at yahoo.com>
> Cc: 'FilePro Mailing List' <filepro-list at lists.celestial.com>
> Sent: Saturday, August 13, 2011 8:00 PM
> Subject: Re: More specific question on @SK
> 
> On 8/13/2011 6:20 PM, Jeff Harrison wrote:
>>  ----- Original Message -----
>> 
>>>  From: Kenneth Brody<kenbrody at spamcop.net>
> [...]
>>>  TheTop   If: @sk = "save"
>>>        1  Then: mesgbox "Here we are at TheTop with SAVE" ; 
> end
>>>             If:
>>>        2  Then: mesgbox "Here we are at TheTop with 
> @sk='"&  @sk
>>>  &  "'" ; end
>>>  @wlf*    If: @sk = "save"
>>>        3  Then: goto TheTop
>>>             If:
>>>        4  Then: end
> [...]
>>  I would expect the message box on line 1 to execute twice.  Once
>>  as part of the when processing, and then again as part of the
>>  regular input processing.  I have not tried it however to verify.
> 
> Well, let me congratulate you for being the first person to answer that line 1 
> will be reached twice, for the reasons you stated.
> 
> However, the rest of your statement is incorrect.
> 
> -- Kenneth Brody
>

Of course!  Once I try it it seems obvious.  The act of pressing Enter on the first message box changes the @sk to "ENTR", so it would not be true the second time, and therefore you would see the message box on line 2 instead.

Jeff Harrison
jeffaharrison at yahoo.com
Author of JHExport and JHImport


More information about the Filepro-list mailing list