![]() UJML Language Reference |
The _x_getBagBoolean() function returns a boolean value from a property bag, or an optional default value.
boolean _x_getBagBoolean(string bagName, int key [, boolean default])
|
Parameters |
Description |
|
bagName |
The name of a loaded property bag. See _x_loadBag() function. |
|
key |
An int expression or value representing the key of the item. |
|
default |
A boolean expression or value to use as a default if the key does not exist (not required). |
The _x_getBagBoolean() function returns a boolean value from a property bag, or an optional default value.
This function retrieves a boolean value with the referenced key from the named property bag. See Property Bag Functions. If the key does not exist it returns as either false or the optional default value.
The following example shows how to get values from a property bag. It is part of the visualelements.ujml sample.
mFontStyleBold =
_x_getBagBoolean("&BAG_NAME;", &BAG_FONT_STYLE_BOLD;, false);
mFontStyleItalic =
_x_getBagBoolean("&BAG_NAME;", &BAG_FONT_STYLE_ITALIC;, false);
mFontStyleUnderlined =
_x_getBagBoolean("&BAG_NAME;", &BAG_FONT_STYLE_UNDERLINED;, false);|
Copyright (c) 2000-2007 UIEvolution, Inc. All rights reserved.
|
|
What do you think about this topic? Send feedback!
|