Click or drag to resize

ITravelInterfaceReadFile Method

ReadFile

Read update files (the *.up or *.dwn files) into the travel or central database for a travel user. This file has information regarding changes in the central or travel database. (Replication info).

CanReadFile is called before this function, and if CanReadFile returns False, this function will not be performed. In the central database all users with User Level 0 may read files.

In a travel database, the only associate who is allowed to read these files is the owner of the travel database. Administrator does not have access to a travel database.

Namespace:  SuperOffice.COM.SuperOfficeDB
Assembly:  SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntax
bool ReadFile()

Return Value

Type: Boolean
Boolean – true if operation succeeded
Examples

ReadFile

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.ReadFile Then
        'The active travel users dialog will be shown in GUI
        MsgBox "Update files was successfully read."
    Else
        MsgBox "Update files was not successfully read, the logged in user might not have the correct permissions. Check log file for error message."
    End If
Else
    MsgBox "Could not log in"
End If
Set objSO = Nothing

See Also