getCtlVal

Syntax

int getCtlVal(int n)

Arguments

n
The index of the user control you want the value of.

Return

The value associated with the user control.

Description

This function retrieves the current value of the user control with the index n. Be aware of the range the user control can return. For example, a push button can only return the values 0 and 1.

Example

int x;
x = getCtlVal(n);
Info ( " control%d value %d", n, x );

Also see

ctl

Comments

Everyone can add his comments about his experiences with this function here. Tips for using it are welcome, too.