Goto:
4C Home
|
4C Docs
|
4C External Libraries Home
|
FCJSon Home
|
FCJSon Function List
CreateBool()
CreateBool()
Purpose:
-
FCJSon::CreateBool() creates a new json boolean object initialized to
either true or false and returns it's ident.
Usage:
-
-
jsonident = FCJSon::CreateBool(<ival>);
Arguments:
-
integer <ival> - initial value - use 0 for false, 1 for true
Returns:
-
integer <jsonident> - The ident of the new json object
Where Used:
-
FCJSon::CreateBool() can be called from anywhere.
Example:
-
Example
Description:
-
FCJSon::CreateBool() creates a new json boolean object initialized to
either true or false and returns it's ident.
If the only reason for creating the bool object is to immediately add it
to another object and then never use if for anything else, you should
use one of FCJSon::ArrayAddBool(), FCJSonArrayPutBool(), or FCJSon::AddBool()
instead.
It will create, initialize, and add it the other object using only one call.
Bugs/Features/Comments:
-
See Also:
-
FCJSon Function List
Back to Top