ITravelInterfaceReadFile Method |
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
ReadFile
This text may be copied to the notepad, and saved as a *.vbs file. Remember to change the login information.
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