Loading...
 

GetValue

GetValue

GetValue(windowID, childID), GetValue(windowID), GetValue(, childID), GetValue, GetValue(STACK)

parameters: Identifier of a Windows and a child Windows object

Stack
Stack Position Description
Stack(In) Top -
Stack(Out) Top a string

From input fields and other window objects that display a character string, this can be 'read' with GetValue. With window objects that hold a multilingual character string, GetValue only shows the character string of the currently set language. With GetMLText you get the multiple string.

Note:
Exception for the window objects Radio, Checkbox, Button (with flag TOGGLE) and Item (with flag CHECK_MARK):

Attention! for Widget FString: Here GetValue returns the unformatted string. This means that it is not on the stack what is displayed on the surface. If this string is needed the output of GetValue has to be formatted with the function FString.

Stack
Stack Position Description
Stack(In) Top -
Stack(Out) Top TRUE or FALSE (1 or 0)

Here you get TRUE if the window object is currently selected. (see example).

Note: Use GetObject to retrieve from Window objects such as Numeric, Date, ... instead of a string an object CX_NUMERIC, CX_DATE ... instead of a character string.