More specific question on @SK

Jeff Harrison jeffaharrison at yahoo.com
Sat Aug 13 20:32:52 PDT 2011


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

> From: "flowersoft at compuserve.com" <flowersoft at compuserve.com>
> To: 'Jeff Harrison' <jeffaharrison at yahoo.com>; 'Kenneth Brody' <kenbrody at spamcop.net>
> Cc: 'FilePro Mailing List' <filepro-list at lists.celestial.com>
> Sent: Saturday, August 13, 2011 10:23 PM
> Subject: RE: More specific question on @SK
> 
>>  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
> 
> That's why I think he should not have used that example.  It is obvious that
> @sk="ENTR" after the message box is displayed because the user has to 
> hit
> <Enter> to get rid of it.
> Is something even more subtle.
> Go back to the example I posted where I said that assuming line #1 was true,
> which of the other 3 lines would be evaluated as TRUE by filePro.
> Here is the code again:
> 1------ If: @sk="save"   <---- assume this line is TRUE
>     Then: input popup yn "Do You want to Exit? (Y/n) " default 
> "Y"
> 2-------If: @sk="save" and rs ne "N"
>       Then: exit
> 3-------If: @sk="save" and rs eq "N"
>       Then: screen , at fd
> 4-------If:
>       Then: end
>

Well, I did come late to this party.  It depends on how you answer the input popup on line 1.  Whatever you do on line 1 I believe that you are going to reset the @sk.  It also depends on what the value of rs is of course - although I suppose you meant to use yn on lines 2 and 3?   PFME and the length of the field yn also should be considered.

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


More information about the Filepro-list mailing list