Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to Open and view a Text File ?
Message
 
À
18/12/2005 11:55:43
John Baird
Coatesville, Pennsylvanie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01078123
Message ID:
01079024
Vues:
19
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform