Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Program() and Sys(16)
Message
 
 
To
03/06/1999 08:20:32
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00225125
Message ID:
00225960
Views:
16
Ken

You must not be using VFP6. From it's help file:

If you specify –1 for nLevel, PROGRAM( ) returns as a numeric value the current program level. PROGRAM(–1) always returns zero when issued from the Command window.

You'll have to use the code JimB posted for VFP5 or VFP3.

>Program(-1) (or negative anything for that matter) all seem to return the same as program(0) - the top level program. Did I misunderstand something?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform