Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Open and view a Text File ?
Message
 
To
18/12/2005 11:55:43
John Baird
Coatesville, Pennsylvania, United States
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01078123
Message ID:
01079024
Views:
18
Yes John,
but Yim want to display the text file on screen and allow user
to search the inside contents and with
lcFileName = "Whatever.txt"
MODIFY FILE (lcFileName) NOEDIT &&& Sergey's solution
or with
m.file_to_show = [d:\mytext.txt]
oShell = CREATEOBJ('Shell.Application')
oShell.ShellExecute([notepad.exe],m.file_to_show)
the user can search simple with Ctrl+F.


>or read it FileToStr() and show it in an edit box..
>
>
>>Hi Yim,
>>Try this
>>
m.file_to_show = [d:\mytext.txt]
>>oShell = CREATEOBJ('Shell.Application')
>>oShell.ShellExecute([notepad.exe],m.file_to_show)
>>
>>>Hi,
>>>
>>>How to open and view a text file (.TXT) ?
>>>
>>>Please advise.
>>>
>>>Thanks
>>>Derek Yim
_______________________________________________________________
Testing displays the presence, not the absence of bugs.
If a software application has to be designed, it has to be designed correctly!
_______________________________________________________________
Vladimir Zografski
Systems Analyst
Previous
Reply
Map
View

Click here to load this message in the networking platform