Click or drag to resize

ITravelInterfaceManageArea Method

ManageArea This will show the Area Management dialog as long as the associate/user logged in to the database has permission to see it (User level 0). This dialog is used to define areas, both for data distribution and login rights. See the documentation if you are unsure about the concepts. CanManageArea is called before this function, and if CanManageArea returns False, this function will not be performed. Only associates with user level 0 in the central database may manage area definitions.

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

Return Value

Type: Boolean
Boolean – true if on logged user can manage areas.
Examples

ManageArea

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.ManageArea Then
        'The Area definition dialog will be shown in GUI
        MsgBox "User may manage area."
    Else
        MsgBox "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