Share

acedGetInt

C++

ACCORE_PORT int acedGetInt(
    const ACHAR * prompt, 
    int & nResult, 
    int nMin, 
    int nMax
);

File

acedads.h

Description

Gets user input for an integer.

The AutoCAD user can enter any valid 32-bit integer.

The user cannot respond to acedGetInt() by entering an AutoLISP expression.

The acedGetInt() function returns one of the following: RTNORM if it succeeds, RTERROR if it fails, or RTCAN if the user cancels the request (by pressing [ESC]). A prior call to acedInitGet() can also enable return values of RTNONE or RTKWORD.

Parameters

Parameters Description
prompt Optional prompt string that acedGetInt() displays before it pauses; for no prompt, pass a NULL pointer
nResult Value entered by the user
nMin Input minimum integer value
nMax Input maximum integer value

Returns

Pointer to the whole number entered by the user is returned with the result parameter, a memory area large enough to store a 32-bit integer.

Was this information helpful?