Function ProMessageDoubleRead
Description
Reads a double-precision, floating-point number 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>
ProMessageDoubleRead
(
double range[2]
/* (In)
The lower and upper bounds allowed for the input. If this is NULL, any values are acceptable.
*/
double* answer
/* (Out)
The user's input.
*/
)
Returns
The function successfully read a number.
The user canceled input by typing &ltESC&gt.
The function failed to read a number.
Sample Code References
User Guide References
Isto foi útil?