Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can program know it's own name?
Message
From
16/10/1999 21:30:21
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00276686
Message ID:
00277359
Views:
29
>Peter, I said take a look at SYS(16) too. :)

That you did.


>In this case WAIT WINDOW SYS(16,0) will give you your ANYNAME.EXE name.
>
>Nick


Cool! Haven't tried it yet but it looks good. Got this from the help:

This option is useful for recovering from errors. SYS(16) is similar to PROGRAM( ). However, SYS(16) returns a path with the program name; whereas PROGRAM( ) returns just the program name.

If a procedure or function is being executed, SYS(16) returns the name of the file containing the procedure or function after the procedure or function name.


As you might have guessed, I jumped to the conclusion that PROGRAM() and SYS(16) were the same function with different names.

Thanks a bunch.

Peter
Peter Robinson ** Rodes Design ** Virginia
Previous
Reply
Map
View

Click here to load this message in the networking platform