Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Valid case of NULL character inside programs?
Message
De
05/07/2014 20:15:13
 
 
À
05/07/2014 17:59:15
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows NT
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01603246
Message ID:
01603261
Vues:
58
Hi Dragan:

Up to now I never found this special character on a PRG file (ascii 0 to ascii 31 are special control codes, where 0=null, 7=tab, 10=LF, 13=CR, 26=EOF, and so on), but found some on the "methods" memo field of some SCX and VCX files. As you probably know, these memo fields contains the method source code of those VFP binaries, and are compiled into another memo named "objcode" (the FXP part)

With this methods you can create a real PRG and can compile normally without warnings when a null character leaks into the source code (in example, at the end of a LPARAMETERS line) that you normally can't see with VFP editor, but can see with other editors or hex editors.

This case is known one, and is a bug, but what I am asking is if someone know a case in which this special character can be there on purpose.

You can emulate this case with something like this:
strtofile( "LPARAMETERS aa,bb,cc" + chr(0), "my_prog.prg" )
COMPILE my_prog
0 errors
Fernando D. Bozzo
Madrid / Spain
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform