guiSpinnerGetValue (Function)

Top  Previous  Next

Architecture:

NX32L

Device support:

NX-400

Firmware version:

1.00.00


This function retrieves the value of a numeric spinner.

 

Input:

spinner : SYSHANDLE

A handle to the numeric spinner to get the value from.

 

Output:

value : DINT

The current value of the spinner.

 

Returns: INT

0

- Success.

-1

- Interface is not open (see guiOpen).

-3

- Invalid handle.

-11

- The GUI API is not supported.

 

Declaration:

FUNCTION guiSpinnerGetValue : INT;
VAR_INPUT
  spinner : SYSHANDLE;
  value   : ACCESS DINT;
END_VAR;

 

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
VAR
  rc      : INT;
  val     : DINT;
  spinner : SYSHANDLE;
END_VAR;
 
BEGIN
  ...
  // Read the value
  rc := guiSpinnerGetValue(spinner := spinner, value:=val);
  ...
END;
END_PROGRAM;