Small company logo:
   History
 
Advertising banner:
 
 ServerFile.Move
Home • Help • Customization Tools • FCAS • Language Reference • ServerFile.Move
 
Purpose
Moves an object on the FirstClass server without transferring the contents through your application.
The same rules apply whether you move an object using the client or this keyword.
If ServerFile.RunTimeErrors = TRUE, an error will be thrown on failures. All failures will set ServerFile.Error to the FirstClass error code for the failure case.
Syntax
ServerFile.Move (Path | FileName, Destination)


Path
Where you want to move the object.
FileName
The name of the file in the current container that you want to move.
Destination
A server file variable already opened to the location where you want to move the file.
This allows access even though all paths on the server aren't accessible from the same root node. For example, it permits moving from one user's Desktop to another's.

Example
Dim sf as ServerFile
sf.OpenFile ("Conferences | AConf | Test")
sf.Move ("Conferences | TestConf")