Declare a (global or local) external function:
FUNCTION long ShellExecute( ulong hWnd, string Operation, string lpFile, string lpParameters, string lpDirectory, int nShowCmd ) LIBRARY "shell32.dll" ALIAS FOR "ShellExecuteW"
To open a file with the default application, use:
string ls_filename, ls_null SetNull(ls_null) ls_filename = "C:\Full\Path\To\File.pdf" ShellExecute( 0 , "open", ls_filename, ls_Null, ls_Null, 1)
more about ShellExecute can be found here:
ShellExecute function (Windows)
hth
Arnd