Click or drag to resize

ITravelInterfaceGoTravel Method

method GoTravel Sends the associate currently logged in out on travel, performs a local update. Function CanTravel is called before this function to check if the associate is a valid travel user.

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

Return Value

Type: Boolean
Boolean – true if operation succeeded
Examples

GoTravel

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.GoTravel Then
        MsgBox "Local update performed."
    Else
        MsgBox "The on logged 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