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
SyntaxFunction ManageArea As Boolean
Dim instance As ITravelInterface
Dim returnValue As Boolean
returnValue = instance.ManageArea()
Return Value
Type:
BooleanBoolean – true if on logged user can manage areas.
ExamplesManageArea
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.ManageArea Then
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