Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Open a text file
Message
From
12/12/2003 15:28:25
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Open a text file
Miscellaneous
Thread ID:
00858757
Message ID:
00858757
Views:
56
Hi,

I would like to be able to open up a text file from a VFP 7 form. I'm able to do so using this code:
LOCAL lcFile

lcFile = THIS.txtResults.Value

IF !EMPTY(lcFile) AND FILE(lcFile) AND UPPER(JUSTEXT(lcFile)) == "TXT"
  lcFile = "notepad " + lcFile
  RUN &lcFile
ENDIF 
However, when the above code is run you get the text file opened in notepad but you can see a DOS window in the background until you close the file. Is there any way you can do this without showing the DOS window?

Thanks,
Chris
Next
Reply
Map
View

Click here to load this message in the networking platform