Small company logo:
   History
 
Advertising banner:
 
 ServerFile.Attachment
Home • Help • Customization Tools • FCAS • Language Reference • ServerFile.Attachment
 
Purpose
Assigns a File or ServerFile variable to the Attachment property of a file on the FirstClass server.
The attachment will only contain data that has been read into the File or ServerFile object. If no data is present, the file isn't attached. In addition, only binary content is attached. FCAS doesn't support the attachment of FirstClass objects that include field data, a body, and so on.
Multiple files can be attached by calling Attachment as if it were an array.
Syntax
ServerFile.Attachment [(AttachmentNumber)] = File
Example
Dim f as File
Dim sf as ServerFile
Dim sf2 as ServerFile

f.OpenFile("c:\boot.ini",fcRead)
f.Read(1024)

sf.CreateFile("FCAS Config|Test Item",fcDocument)
sf.OpenFile("FCAS Config|Test Item",fcRead)
sf.Attachment=f
sf2.OpenFile("FCAS Config|test.exe",fcRead)
sf2.Read(30000)
sf.Attachment(1)=sf2
sf2.CloseFile
sf.CloseFile
f.CloseFile