Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A problem with compiler: you cannot put ASCII 26
Message
From
26/04/2004 18:32:09
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
26/04/2004 03:36:11
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00897370
Message ID:
00898346
Views:
15
>
>You misunderstood this -
>it can save the files with or without the EOF marker in the end,
> which is for compatibility with whatever other software the user is using, which may need the EOF marker to work properly. But if the EOF marker is found in the source,
> Visual FoxPro will respect it, not ignore it.
>

>
>This is not true.
>
>Read my Message #897948
>
>Dragan, this is a VFP parser problem, correlate with the strings, not with the file.

I've tried putting chr(26) in comments (by typing alt+026) and it is ignored. Seems to be VFP is ignoring anything in a comment - a comment is parsed for end of line and nothing else matters.

But it's caught anywhere else - if it's a part of a string literal, it's end of file before end of string, therefore an error. If it's on a line for itself, it's again an EOF, and lines after this aren't even considered by compiler. You can put megabytes of anything after an eof marker, and it will be ignored.

So I stand corrected that it ignores eof markers in comments - I didn't know that. But then, I think even that was so for a number of versions. I don't think this is a bug, because there's no expected behavior that it differs from.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform