API Reference > Classes > PRC Protocol Extensions Classes > ExPrcCommandContext Class > ExPrcCommandContext Methods > ExPrcCommandContext::getInt Method
ExPrcCommandContext::getInt Method
Syntax
C++
virtual int getInt(const OdString& prompt, int options = OdEd::kInpDefault, int defVal = 0, const OdString& keywords = OdString::kEmpty, OdEdIntegerTracker* pTracker = 0);
Parameters 
Description 
const OdString& prompt 
[in] A prompt string with text printed before waiting for user input.  
int options = OdEd::kInpDefault 
[in] A set of input options (bitwise or combination of the OdEd::CommonInputOptions enum).  
int defVal = 0 
[in] A default value returned if user inputs nothing.  
const OdString& keywords = OdString::kEmpty 
[in] A string with a keywords list.  
OdEdIntegerTracker* pTracker = 0 
[in] A pointer to a notification interface for tracking changes in the command context object.  

Returns the entered integer value.

Gets user input of an integer value from the command's input.

Copyright (c) 2002-2020. Open Design Alliance. All rights reserved.