clGetArgv  clGetDfcError

Chapter 2: Bridged Functions

clGetConfig

Description

Retrieves a value from the application configured custom keys as generated by the Configurator. Custom keys are configured on the Advanced tab of the ODL Properties.

Syntax

int clGetConfig(string tag, string *value)

Parameter

Description

tag

String of keys (case sensitive) that are specified in the configurator. This will be “Name” of the key set, plus the individual key, separated by a period (.). For example, if you set the Name to “Flag” and the Key to “Seconds”, you would specify a tag of “Flag.Seconds”.

value

Pointer to the string to receive the value corresponding to the tag parameter.

Return value

Integer.

Returns 1 for success, and 0 for failure (such as a null tag string to look up, or being unable to find the tag string passed in).

Examples

Example 8

int rv;
string secondsTag;
string num_seconds;
secondsTag = "Flag.seconds";
rv = clGetConfig(secondsTag, &num_seconds);
if (rv == 1)
{
	erm("Seconds is [%s]", num_seconds);
	// do anything else you want with the data
}
else
{
	erm("Unable to retrieve seconds!!!);
}

See also

For more information, see the e-Biz Impact Configurator Guide.





Copyright © 2005. Sybase Inc. All rights reserved. clGetDfcError

View this book as PDF