Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can program know it's own name?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00276686
Message ID:
00277359
Vues:
27
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform