Category Creo Parametric user interface, Object ProMessage

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: pfcSession::UIReadRealMessage
Synopsis
#include <ProMessage.h>
ProErrorProMessageDoubleRead(
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
PRO_TK_NO_ERRORThe function successfully read a number.
PRO_TK_MSG_USER_QUITThe user canceled input by typing <ESC>.
PRO_TK_GENERAL_ERRORThe function failed to read a number.

Manual References:

  1. Pro/DEVELOP to Creo Toolkit Function Mapping: Equivalent Pro/DEVELOP Functions
  2. User Interface: Messages: Getting Keyboard Input

Sample Code References:

  1. pt_examples ( TestAnalysisCsys.c )
  2. pt_examples ( TestAnalysisCurve.c )
  3. pt_examples ( TestAnalysisSrfCurve.c )
  4. pt_examples ( TestInterface.c )
  5. pt_examples ( TestInterface.c )
  6. pt_examples ( TestInterface.c )
  7. pt_examples ( TestSolid.c )
  8. pt_examples ( TestSolid.c )
  9. pt_examples ( TestSolid.c )
  10. pt_examples ( TestFamTab.c )
  11. pt_examples ( TestPatternCreate.c )
  12. pt_examples ( TestPatternCreate.c )
  13. pt_examples ( TestPatternCreate.c )
  14. pt_examples ( TestPatternCreate.c )
  15. pt_examples ( TestPatternCreate.c )
  16. pt_examples ( TestPatternCreate.c )
  17. pt_examples ( TestDtmPln.c )
  18. pt_examples ( TestDtmPln.c )
  19. pt_examples ( TestDtmPln.c )
  20. pt_examples ( TestDtmPln.c )
  21. pt_examples ( TestExtrude.c )
  22. pt_examples ( TestGenedata.c )
  23. pt_examples ( TestExport.c )
  24. pt_examples ( TestExport.c )
  25. pt_examples ( TestGeom.c )
  26. pt_examples ( TestGeom.c )
  27. pt_examples ( TestGeom.c )
  28. pt_examples ( TestGeom.c )
  29. pt_examples ( TestGeom.c )
  30. pt_examples ( TestGeom.c )
  31. pt_examples ( TestDrawTbl.c )
  32. pt_examples ( TestDrawTbl.c )
  33. pt_examples ( TestDrawTbl.c )
  34. pt_examples ( TestDrawTbl.c )
  35. pt_examples ( TestDrawTbl.c )
  36. pt_examples ( TestDrawTbl.c )
  37. pt_examples ( TestDrwSheets.c )
  38. pt_examples ( TestDrwView.c )
  39. pt_examples ( TestDrwView.c )
  40. pt_examples ( TestDtlentity.c )
  41. pt_examples ( TestDtlentity.c )
  42. pt_examples ( TestDtlentity.c )
  43. pt_examples ( TestDtlentity.c )
  44. pt_examples ( TestDtlentity.c )
  45. pt_examples ( TestDtlnote.c )
  46. pt_examples ( TestDtlnote.c )
  47. pt_examples ( TestDtlnote.c )
  48. pt_examples ( TestDtlsyminst.c )
  49. pt_examples ( TestDtlsyminst.c )
  50. pt_examples ( TestDtlsyminst.c )
  51. pt_examples ( TestView.c )
  52. pt_examples ( TestMessage.c )
  53. pt_examples ( UtilMfgNew.c )
  54. pt_examples ( UtilMfgNew.c )
  55. pt_examples ( TestGtol.c )
  56. pt_examples ( TestGtol.c )
  57. pt_examples ( TestGtol.c )
  58. pt_examples ( TestGtol.c )
  59. pt_examples ( TestGtol.c )
  60. pt_examples ( TestGtol.c )
  61. pt_examples ( TestGtol.c )
  62. pt_examples ( TestGtol.c )
  63. pt_examples ( TestPartMaterial.c )
  64. pt_examples ( TestRule.c )
  65. pt_examples ( UtilMessage.c )
  66. pt_geardesign ( GearDesign.c )
  67. pt_userguide ( UgDatumCreate.c )
  68. pt_userguide ( UgDimsChange.c )
  69. pt_userguide ( UgExtAnalysisSurfcsys.c )
  70. pt_userguide ( Ug3DSection.c )
  71. pt_userguide ( Ug3DSection.c )
  72. pt_userguide ( UgFlexModelCreate.c )
  73. pt_userguide ( UgFlexModelCreate.c )
  74. pt_userguide ( UgFlexModelCreate.c )
  75. pt_userguide ( UgGtolCreate.c )
  76. pt_userguide ( UgMessageWindowUse.c )