Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A problem with compiler: you cannot put ASCII 26
Message
De
25/04/2004 19:25:27
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
23/04/2004 03:42:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00897370
Message ID:
00898007
Vues:
20
>
>Visual FoxPro even allows you to save files with these special EOF characters if they are required. Look at the properties dialog from a MODI FILE edit window.
>

>
>Set true or false not change.
>
>Before writing, you would have to verify if what you say it is correct.
>
>
>So it's not a Visual FoxPro bug, you'll have to go all the way back to the guys that invented ASCII to report this one. *s*
>

>
>I have said that it is a bug on my Message ?
>
>I say that VFP not support EOF() char into the code.

It supports it, just as it did fifteen years ago, and in the sense that it respects EOF marker: it stops reading the code beyond that byte. So you've found it, it's just that it doesn't do what you expect.

On some systems (read: older versions of DOS, maybe some UNIX/Xenix editors etc), it was possible that the length of the file is lost, and the file is rounded to the boundary of the whole cluster on disk. In that case, the garbage beyond the actual end of the file becomes a part of the file. Making software respect the EOF marker made a lot of sense in such cases. The decision to do so originates probably in dBase II or so - and it's stayed that way. If it was changed today, it would probably break some code which worked happily for 15 years or more, because it would start finding this garbage and producing syntax errors everywhere.

Keep in mind that almost all of the 80s code written in Fox can still run under VFP8, with little or no change. There's no other M$ product out there (except maybe some Fortran compilers) which can do that.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform