Difference between revisions of "COPYFILEFROM()"

From Recital Documentation Wiki
Jump to: navigation, search
 
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
==Class==
 
Disk and File Utilities
 
 
 
 
==Purpose==
 
==Purpose==
 
Function to copy a file from the client to the server
 
Function to copy a file from the client to the server
Line 46: Line 42:
  
 
==Products==
 
==Products==
Recital Mirage Server
+
Recital Mirage  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]

Latest revision as of 16:27, 27 November 2009

Purpose

Function to copy a file from the client to the server


Syntax

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


See Also

COPYFILETO(), SHOWDOCUMENT()


Description

The COPYFILEFROM() function is used to copy files from the client to the server. 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 created.
<expC3> The name of the client file to be transferred.
<expL> If .T. (TRUE), the file transfer status is displayed in the status bar.


Example

if copyfilefrom("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