API 설명서 > Creo Parametric user interface > Object ProMessage > Function ProMessageIntegerRead
Function ProMessageIntegerRead
Description
Reads an integer from the keyboard. If the user types an invalid string, or a value outside the range of values, the function asks the user to enter the value again. Specify default values in the call to ProMessageDisplay(), using the separator ||| in the format string in the message file. (See the Creo Parametric TOOLKIT User's Guide section Contents of the Message File for the specific placement of the ||| separator.)
NOTE:Call ProMessageDisplay before calling this function.
Replacement in Object TOOLKIT:
Synopsis
#include <ProMessage.h>
ProMessageIntegerRead
(
int range[2]
/* (In)
The lower and upper bounds allowed for the input. If this is NULL, any values are acceptable.
*/
int* answer
/* (Out)
The user's input.
*/
)
Returns
The function successfully read an integer.
The user canceled input by typing &ltESC&gt.
The function failed to read an integer.
Sample Code References
User Guide References
도움이 되셨나요?