Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to Open File In Notepad
Message
De
08/02/2013 11:06:09
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
How to Open File In Notepad
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:
01565495
Vues:
69
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 ?
Harsh
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform