Click or drag to resize

ITravelInterfaceCanGeneratePrototype Property

CanGeneratePrototype Check if the associate/user logged in to the database has permission to generate prototypes. (User level 0/administrator or a travel user).

Namespace:  SuperOffice.COM.SuperOfficeDB
Assembly:  SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntax
bool CanGeneratePrototype { get; }

Property Value

Type: Boolean
Boolean – true if associate can generate.
Examples

CanGeneratePrototype

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.CanGeneratePrototype Then
        MsgBox "The on logged user may generate prototype."
    Else
        MsgBox "The on logged user might not have the correct permissions. Check log file for error message Check log file for error message."
    End If
Else
    MsgBox "Could not log in"
End If
Set objSO = Nothing

See Also