Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bug: Compile - error, run - no error
Message
De
08/12/2006 23:24:46
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 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01176311
Message ID:
01176338
Vues:
7
>1. MODIFY COMMAND temp.prg
>2. Copy code below into the open temp.prg
>3. ALT+P+M to compile it
>4. Observerd: ERROR: Command contains unrecognized phrase/keyword.
>
>5. Click Cancel to dismiss the messagebox with error
>6. CTRL+E to run the same code
>7. Observerd: Code runs w/o error and ouputs "Invalid Type" to the desktop
>Expected: The same error as in 4.

The line with the error is probably tagged as a line with an error, but since it doesn't execute, it just skips silently over it. Which probably explains why I used to catch compile errors at run time, when I didn't have "compile when saved" on. I actually still don't turn it on - now I have a little prg which compiles an app and runs it, so any compile errors are caught then.

>
>lnDriveType = 0
>DO CASE
>CASE lnDriveType = 6
>	lcDriveType = "RAM disk
>OTHERWISE
>	? "Invalid Type"
>ENDCASE
>
>
>Comments: I thought that CTRL+E causes code to be compiled as with ALT+P+M and then run but it seems not to be the case.

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