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

Re: VFP 6 (and ?): Lazy Parsing by Olaf

Olaf
Fri Aug 18 12:03:08 CDT 2006

Hi Gene,

And what was the behaviour?

The otherwise branch was always executed?

> 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.



Re: VFP 6 (and ?): Lazy Parsing by Gene

Gene
Fri Aug 18 12:28:13 CDT 2006

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

>And what was the behaviour?
>
>The otherwise branch was always executed?

Yes.

>> 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