Difference between revisions of "COPYFILETO()"

From Recital Documentation Wiki
Jump to: navigation, search
(Class)
 
Line 1: Line 1:
 
 
 
==Purpose==
 
==Purpose==
 
Function to copy a file from the server to the client
 
Function to copy a file from the server to the client
Line 44: Line 42:
  
 
==Products==
 
==Products==
Recital Mirage Server[[Category:Documentation]]
+
Recital Mirage[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]

Latest revision as of 16:27, 27 November 2009

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