Get

GetNewN

Create a Get for a number variable

Syntax

Signature
Get *GetNewN( int row, int col, double *value, const char *name, const GetOpts *opts );

Arguments

row, col the terminal position of the field; NIL uses the cursor position.

value points to the double variable.

name the name of the variable, or NULL for "".

opts points to a GetOpts structure, or NULL for defaults.

Return value

The new Get object, or NULL when value is NULL. Release it with GetFree().

Description

Without a picture the width comes from the value, with the decimals of Set( _SET_DECIMALS ). The first digit typed clears the field; the point or the comma moves the cursor behind the decimal point.

See also