Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can I get the location of my .exe
Message
 
 
To
02/04/2002 23:00:51
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00640175
Message ID:
00640224
Views:
41
Why would you put the PROCEDURE statement in the beginning of the main program? You can safely remove it.

>Hi Sergey,
>
>If the main program in an application begins with somethng like
>
>PROCEDURE MYAPP
>
>Sys(16,1) returns "PROCEDURE MYAPP C:\MYAPPPATH\MYAPP.EXE
>
>In this case justpath(sys(16,1)) fails to provide the correct path.
>
>If the Main program does not begin with PROCEDURE, Sys(16,1) returns just the exe filename with full path and justpath(sys(16,1) will provide the correct path.
>
>justpath(_VFP.ServerName) appears to provide the correct path in either case.
>
>Elmer
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform