dbTalk Databases Forums  

VFP 6 (and ?): Lazy Parsing

comp.databases.xbase.fox comp.databases.xbase.fox


Discuss VFP 6 (and ?): Lazy Parsing in the comp.databases.xbase.fox forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Gene Wirchenko
 
Posts: n/a

Default VFP 6 (and ?): Lazy Parsing - 08-16-2006 , 04:53 PM






I just corrected a bug where VFP could have parsed better. I had
a do case. Somehow, I left off the case keyword on the two cases.
There were no compilation or run-time errors. Here is the corrected
code with the correction in caps:

do case
CASE cwhoshad.stnbusy="L"
busymsg="Station is busy (Local use)."
CASE cwhoshad.stnbusy="R"
busymsg="Station is busy (Remote use)."
otherwise
busymsg=;
"Station is busy. The access type is unknown ("+cwhoshad.stnbusy+")."
endcase

Shades of
* This is a comment;
? "and so is this."

Sincerely,

Gene Wirchenko


Reply With Quote
  #2  
Old   
Olaf.Doschke
 
Posts: n/a

Default Re: VFP 6 (and ?): Lazy Parsing - 08-18-2006 , 12:03 PM






Hi Gene,

And what was the behaviour?

The otherwise branch was always executed?

Quote:
do case
cwhoshad.stnbusy="L"
busymsg="Station is busy (Local use)."
cwhoshad.stnbusy="R"
busymsg="Station is busy (Remote use)."
otherwise
busymsg=;
"Station is busy. The access type is unknown ("+cwhoshad.stnbusy+")."
endcase
Yes, seems so. Not very (other)wise.

Bye, Olaf.




Reply With Quote
  #3  
Old   
Gene Wirchenko
 
Posts: n/a

Default Re: VFP 6 (and ?): Lazy Parsing - 08-18-2006 , 12:28 PM



On Fri, 18 Aug 2006 19:03:08 +0200, "Olaf.Doschke"
<b2xhZi5kb3NjaGtlQHNldG1pY3MuZGU (AT) strconv (DOT) 14.de> wrote:

Quote:
And what was the behaviour?

The otherwise branch was always executed?
Yes.

Quote:
do case
cwhoshad.stnbusy="L"
busymsg="Station is busy (Local use)."
cwhoshad.stnbusy="R"
busymsg="Station is busy (Remote use)."
otherwise
busymsg=;
"Station is busy. The access type is unknown ("+cwhoshad.stnbusy+")."
endcase

Yes, seems so. Not very (other)wise.
Sincerely,

Gene Wirchenko



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.