Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Processing a PRG file programatically
Message
 
To
19/10/2004 18:05:30
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro Beta
Miscellaneous
Thread ID:
00952486
Message ID:
00952836
Views:
14
Cetin,
ON KEY LABEL F8 DO x:\test.prg

* x:\test.prg
SET LIBRARY TO (home()+"foxtools.fll")
LOCAL lihwnd
LOCAL ARRAY laEnv(25)
lihwnd=_WonTop()
IF lihwnd>0
   =_edGetEnv(lihwnd,@laEnv)
   ?laEnv(1)
ENDIF
Function _edGetEnv() return only file name - without folder.

MartinJ

>>I'm working on a tool to analyze code, and am looking for a way to close down the prg file prior to analysis and reopen after analysis has completed. There are multiple solutions with VCX's and SCX's, but I haven't seen a solid way to get the full path for a prg.
>>I can use FULLPATH(WonTop()), but if I have more than one PRG with the same name there is no guarantee I will pick up the correct PRG - or if the prg isn't in a folder in the path. Are there any VFP built in functions (e.g. like ASelObj()) which will give me a full filename and handle to the prg? Any API calls?
>>
>>Michael
>
>Michael,
>Check _Ed* foxpro API. I remember I did something similar with one of them.
>Cetin
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform