Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to Open File In Notepad
Message
De
09/02/2013 13:48:44
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01565495
Message ID:
01565635
Vues:
48
Thanks its working.


>>I am Using the follwing function to Open File through Program
>>
>>declare long ShellExecute in "shell32.dll" ; && Function to Open a File
>> long hwnd, ;
>> string lpszOp, ;
>> string lpszFile, ;
>> string lpszParams, ;
>> string lpszDir, ;
>> long nShowCmd
>>
>>lnResult = SHELLEXECUTE(0, 'open', 'master.ps', '', '', 1)
>>
>>The file is well opened in PS Viewer. However For my Program Use I want that when The User clicks, It should open in Notepad. (As I want User to Read/Write Data Inside through Notepad)
>>
>>So How to force a File to Open in Notepad ?
>
>
>try:
>
>nResult =  ShellExecute(0, 'open', 'notepad', Full_path_To_master.ps, '', 1)
>
Harsh
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform