Try this:
? ShellExecute(0,"print",gota,"","",0)
The variable without "&".
HTH
Gerhard
>If I print a given document it works fine
>
>DECLARE INTEGER ShellExecute ;
>IN SHELL32.DLL ;
>INTEGER nWinHandle,;
>STRING cOperation,;
>STRING cFileName,;
>STRING cParameters,;
>STRING cDirectory,;
>INTEGER nShowWindow
>? ShellExecute(0,"print","c:\what.doc","","",0)
>
>But if I go looking for the document with the following code I get error
>
> function name is missing ).
>
>in shell execute line - what is the correct syntax of this line
>
>gota=getfile()
>
>
>DECLARE INTEGER ShellExecute ;
>IN SHELL32.DLL ;
>INTEGER nWinHandle,;
>STRING cOperation,;
>STRING cFileName,;
>STRING cParameters,;
>STRING cDirectory,;
>INTEGER nShowWindow
>? ShellExecute(0,"print",&gota,"","",0)
Gerhard Schmidbauer
URANUS Software GmbH