BBjConfig::setCompatibilitySetting

Description

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

Syntax

Return Value

Method

void

setCompatibilitySetting(string compatName, boolean value)

Parameters

Variable

Description

compatName

Name of !COMPAT value to be retrieved from STBL.

value

Value to set for the !COMPAT

Return Value

None.

Remarks

STBL("!COMPAT", "name=true") is equivalent to BBjConfig::setCompatibilitySetting("name",1).

STBL("!COMPAT", "name=false") is equivalent to BBjConfig::setCompatibilitySetting("name",0).

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.