GetContextKeywords

Description

Retrieves one or more values associated with a specified keyword.

Applies to

ContextKeyword objects

Syntax

servicereference.GetContextKeywords ( name, values )

Argument

Description

servicereference

Reference to the ContextKeyword service instance.

name

String specifying the keyword for which the function returns corresponding values.

values

Unbounded String array into which the function places the values that correspond to name. This argument is passed by reference.

Returns

Integer. Returns the number of elements in values if the function succeeds and -1 if an error occurs.

Usage

Call this function to access environment variables.

This function can also be used with a PowerBuilder EAServer component to return the value of a specific property from the component’s .props file. To enumerate the properties of an EAServer component, use the Jaguar::Repository API.

Examples

Example 1

This example calls the GetContextKeywords function:

String ls_keyword

Integer li_count, li_return

ContextKeyword lcx_key


li_return = this.GetContextService &

    ("ContextKeyword", lcx_key)

ls_keyword = sle_name.Text

lcx_key.GetContextKeywords &

    (ls_keyword, is_values)

FOR li_count = 1 to UpperBound(is_values)

    lb_parms.AddItem(is_values[li_count])

NEXT

See also