Click or drag to resize

ITravelInterfaceCanReadFile Property

CanReadFile Checks if the replication file is available and if we’re allowed to read it

Namespace:  SuperOffice.COM.SuperOfficeDB
Assembly:  SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntax
bool CanReadFile { get; }

Property Value

Type: Boolean
Boolean – true if file exists and we have privilege to process it
Examples

CanReadFile

This text may be copied to the notepad, and saved as a *.vbs file. Remember to change the login information.

VB
Dim objSO 
Dim objTI 
Set objSO = CreateObject("SuperOffice.Application")
If not (objSO is nothing) Then
    Set objTI = objSO.Database.TravelInterface
    If objTI.CanReadFile Then
        MsgBox "The associate that is logged in can read the replication file"
    Else
        MsgBox "The associate that is logged in can't read the replication file"
    End If
Else
    MsgBox "Could not log in"
End If
Set objSO = Nothing

See Also