>Can anyone tell me what I am doing wrong here:
>
>
>DECLARE INTEGER ShellExecute IN "Shell32.dll" ;
> INTEGER HWND, ;
> STRING lpVerb, ;
> STRING lpFile, ;
> STRING lpParameters, ;
> STRING lpDirectory, ;
> LONG nShowCmd
>=Shellexecute(0,"Open","d:\VFPAPPS\APPDOCS\PROCS.TXT","","",0)
Rather than 0 for the last parameter, try 5; 5 is an SW_SHOW, 1 is SW_SHOWNORMAL, both of which display it, but 0 is SW_HIDE.
>
>
>I have this in a click event. I am trying to open up a text file in notepad but all it does is show an hour glass very briefly and then nothing. I am stumped.
>
If it's just a text file, why not use the built-in editor:
MODIFY FILE ("d:\VFPAPPS\APPDOCS\PROCS.TXT") &&NOWAIT if modeless
>Thanks,
>George