BBjAPI::getConstants

Description

In BBj 11.00 and higher, this method returns a BBjConstants object.

Syntax

Return Value

Method

BBjConstants

getConstants()

Parameters

None.

Return Value

Returns a BBjConstants object.

Example

rem ' BBjConstants

c! = bbjapi().getConstants()
result = msgbox("OK to proceed?",c!.MB_YESNO+c!.MB_ICONQUESTION+c!.MB_DEFBUTTON2)
switch result
    case c!.MB_SELECT_YES
        print "User selected YES"
        break
    case c!.MB_SELECT_NO
        print "User selected NO"
        break
    case c!.MB_SELECT_CLOSE
        print "User hit ESCAPE or clicked the close box"
        break
    case default
        print "Unknown response",result
        break
swend
stop

See Also

BBjAPI

Object Variables

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.