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

Click here to load this message in the networking platform