VLScgSetNumericType

Syntax

int VlScgSetNumericType (VLScg_HANDLE iHandle, codeT *codeP, char *num);
Argument Description

iHandle

The instance handle for this library.

codeP

The pointer to the codeT struct.

num

Numeric type values are:

>VLScg_NUMERIC_UNKNOWN = “0”

>VLScg_NOT_NUMERIC = “1”

>VLScg_MISC_SHORT_NUMERIC = “2”

>VLScg_MISC_NUMERIC = “3”

Description

Sets the value codeP->numeric_type to the value of num and checks the user input and saves the value in code struct.

Returns

The status code VLScg_SUCCESS is returned if successful. Otherwise, it will return the following error codes:

Error Code

Description

VLScg_INVALID_INT_TYPE

If the value of info is not numeric.

VLScg_EXCEEDS_MAX_VALUE

Value exceeds the maximum value of 3.

VLScg_LESS_THAN_MIN_VALUE

If value is less than 0.

For the complete list of the error codes, refer to License Generation and Revocation Error Codes .