Advertising banner:

History
 
 LFS14
Home • Help • Administration • FirstClass Scripting • LFS14
 
COPYFLD



Function
Copies the contents of a field from one form to another where source field ID and destination field ID are the same.



Syntax
COPYFLD source_objdesc fieldID dest objdesc
Parameters


source_objdesc
The source where the form is located.
path
The location of the form specified by a path relative to the administrator's Desktop.
DESKTOP userID
The location of the form relative to the user’s Desktop.
SYSPROFILE
The System Profile.
USER userID
The user information form.
CLIENT clientID
The user information form specified by the client ID.
DIRECTORY name
The Directory form of gateways, conferences, remote names, and user groups.
fieldID
The number assigned to the field (shown in the Example.fc file).
dest_objdesc
The destination form. Uses the same set of parameters as source_objdesc above.




Example
To copy the address field (1205) from sbram's information form to pchu's, you would enter:
COPYFLD user sbram 1205 user pchu
The user ID can be changed by the administrator, however, the client ID can never be changed, nor is the number ever reused. Systems administrated solely by FC scripting and external databases may prefer to use client ID.
To copy the address field (1205) from sbram's (client ID 1612) User Info formto pchu's (client ID 1602), you would enter:
COPYFLD CLIENT 1612 1205 CLIENT 1602