>Is there a means to open and view a specific file from a form without knowing the file's format?
>
>I have been asked to add an ability to view attachment files, but have no way of knowing in advance of knowing whether the file will be .txt, .doc, .xls, or what.
>
>I was hoping to use GETFILE(), but either it isn't up to the job, or I'm not using it correctly.
>
>Help, please?
Patrick,
One different suggestion. You could use the WScript.Shell's run method. It also allows you to specify that the calling program is to wait for the other program to terminate.
LOCAL oShell AS 'WScript.Shell'
oShell = CREATEOBJECT('WScript.Shell')
oShell.Run(file name, [ window state - n], [ wait on return - l])
The last two parameters are optional. The only problem would be with this method if the Windows Script Host wasn't installed.
George
Ubi caritas et amor, deus ibi est