Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bug: Compile - error, run - no error
Message
From
09/12/2006 20:29:02
 
 
To
08/12/2006 19:41:34
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01176311
Message ID:
01176374
Views:
6
>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.
>
>
>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.

I created the file PRG in Notepad and then ran it from VFP. It didn't generate a compiler error either. Is it possible that "run time compilation" (not sure of the correct technical term) such as DO without an FXP or CTRL+E has an implied "Ignore" for all compiler errors
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform