BBjConfig::getCompatibilitySetting

Description

In BBj 6.0 and higher, this method retrieves !COMPAT values from STBL() functions.

Syntax

Return Value

Method

boolean

getCompatibilitySetting(string compatName)

Parameters

Variable

Description

compatName

Name of !COMPAT value to be retrieved from STBL.

Return Value

The current value of the specified !COMPAT value in the STBL table.

Remarks

None.

Example

rem 'Demonstration of BBjConfig::get/setCompatibilitySetting

rem 'and the methods' relationship to STBL("!COMPAT")
declare BBjConfig config!
config! = BBjAPI().getConfig()

rem 'Get the settings and display them
print "LEGACY_TYPECHECK"
print STBL("!COMPAT","LEGACY_TYPECHECK")
print config!.getCompatibilitySetting("LEGACY_TYPECHECK")
print "RCLICKTOOLBUTTON"
print STBL("!COMPAT","RCLICKTOOLBUTTON")
print config!.getCompatibilitySetting("RCLICKTOOLBUTTON")
print "GROUP_MODAL_DIALOGS"
print stbl("!COMPAT","GROUP_MODAL_DIALOGS")
print config!.getCompatibilitySetting("GROUP_MODAL_DIALOGS")
print "UPDATE_TEXT_HOTKEYS"
print stbl("!COMPAT","UPDATE_TEXT_HOTKEYS")
print config!.getCompatibilitySetting("UPDATE_TEXT_HOTKEYS")
print "INCONSISTENT_HTML_FONTS"
print stbl("!COMPAT","INCONSISTENT_HTML_FONTS")
print config!.getCompatibilitySetting("INCONSISTENT_HTML_FONTS")

rem 'Demonstrate setting a compatibilty setting
print "Setting INCONSISTENT_HTML_FONTS to TRUE and then back to FALSE."
print "Setting: ",stbl("!COMPAT","INCONSISTENT_HTML_FONTS = TRUE")
print "Getting: ",config!.getCompatibilitySetting("INCONSISTENT_HTML_FONTS")
print "Setting it to False"
config!.setCompatibilitySetting("INCONSISTENT_HTML_FONTS",0)
print "Getting: ",stbl("!COMPAT","INCONSISTENT_HTML_FONTS")

See Also

BBjAPI

BBjConfig

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