COPYFILETO()

From Recital Documentation Wiki
Revision as of 14:52, 27 October 2009 by Helengeorge (Talk | contribs)

Jump to: navigation, search


Purpose

Function to copy a file from the server to the client


Syntax

COPYFILETO(<expC1>, <expC2>, <expC3>, <expL> )


See Also

COPYFILEFROM(), SHOWDOCUMENT()


Description

The COPYFILETO() function is used to copy files from the server to the client. It will return TRUE if the file transfer is successful, otherwise it will return FALSE.


Keyword Description
<expC1> The file transfer type: "BINARY" or "TEXT".
<expC2> The name of the server file to be transferred.
<expC3> The name of the client file to be created.
<expL> If .T. (TRUE), the file transfer status is displayed in the status bar.


Example

if copyfileto("TEXT","/usr/recital/UAS/mirage/mirage_demo/mirage_demo.prg ", ;
" C:Program FilesRecitalUASMirageMirage_demoMirage_demo.prg ",.T.)
    dialog box "File transfer successful"
else
    dialog box "File transfer failed"
endif


Products

Recital Mirage Server