Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Open File In Notepad
Message
From
08/02/2013 11:06:09
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
How to Open File In Notepad
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01565495
Message ID:
01565495
Views:
71
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
Next
Reply
Map
View

Click here to load this message in the networking platform