Small company logo:
   History
 
Advertising banner:
 
 ServerFile.CreateFile
Home • Help • Customization Tools • FCAS • Language Reference • ServerFile.CreateFile
 
Purpose
Creates files on the FirstClass server.
This allows the creation of any type of object anywhere that the FCAS gateway:
•       can access
•       has permission to create items.
Syntax
ServerFile.CreateFile ("[Path |] ObjectType" [, FormID] [, IconID] [, Position])


Path
You can specify either a full path, or a relative path where you have a container open and want to create files in that container.
ObjectType
Any object type that corresponds to internal object types.
Constants are provided for major types:
•       fcConference
•        fcFolder
•       fcConfItem
•       fcMessage
•       fcText
•        fcFile
•       fcForm
•       fcChat
•       fcSysInfo
•        fcFormDoc
•       fcHitList
•       fcDocument
•       fcPermStationery
•        fcTempStationery.

Example
Dim sf as ServerFile
sf.CreateFile("TestFolder|TestDoc1",fcDocument) ' Create a document in TestFolder with default values
sf.CreateFile("TestFolder|TestDoc1",fcDocument,10000) ' Create a document in TestFolder with FormID 10000
sf.CreateFile("TestFolder|TestDoc1",fcDocument,10000,8000) ' Create a document in TestFolder with FormID 10000, IconID 8000
sf.CreateFile("TestFolder|TestDoc1",fcDocument,10000,8000,10,100) ' Create a document in TestFolder with FormID 10000, IconID 8000, position x 10, position y 100
sf.CreateFile("TestFolder|SubFolder",fcFolder) ' Create a folder in TestFolder with default values