Just put DECLARE statement somewhere in your main program or application object. The CopyFile() function will be available after that as long as you do not CLEAR DLLS or CLEAR ALL.
>
>How can I
>
>DECLARE Long CopyFile IN WIN32API ;
> String SourceFileName, String DestFileName, Long bFailIfExists
>
>in some main prg
>and use in forms only
>
>IF CopyFile(lcFileName, lcCopyFileName, 0) = 0
> ? "Copy unsuccessful"
>ENDIF
--sb--