Purpose
Checks the type of a file on the FirstClass server.
Can be used with an already open file or with a specified path or index.
Syntax
ServerFile.Type [(Path) |, Index]
Path |
The path to the file whose type is to be returned. The path can include a container within the file. If you specify a path, the return fcInvalid indicates that the object wasn't found. |
Index |
The integer that represents the file whose type is to be returned from the list view. |
Example
Dim sf as ServerFile
If (sf.Type("FCAS Config|About this folder"=fcDocument) Then
Debug "This one is a document"
End If
sf.OpenFile("FCAS Config|About this potato")
If (sf.Type=fcDocument) Then
Debug "Yep, still a document"
End If
|