Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
the definition of the function is as following,
extern ProError ProMessageIntegerRead( int range[2], int* answer );
and the code is
status=ProMessageDisplay(MSG,"XD Input the version|||%0d",&ver);
status= ProMessageIntegerRead( NULL, &ver);
and it displayed
.
1, If type "ESC" key or press the "x" button, the function return PRO_TK_MSG_USER_QUIT
2, If input a new number and press "Enter", the function return PRO_TK_NO_ERROR
3, if input the same number (1 in this sample) or press the "V" button or press mouse "Middle" button, the function return PRO_TK_GENERAL_ERROR
i tried Creo 3.0 F000 and M120, in the API it says that
Return Values:
PRO_TK_NO_ERROR - The function successfully read an integer.
PRO_TK_MSG_USER_QUIT - The user canceled input by typing <ESC>.
PRO_TK_GENERAL_ERROR - The function failed to read an integer.
Is it a bug with case 3?