PromptForInteger Method (ICommandMessage) Send Feedback
See Also 
Result[out]
True if the prompt is displayed in the command window, false if not
Prompt
Text of prompt
DefaultValue
Default integer or long value
Value[out]
Integer or long value
Displays the specified prompt and default value for the integer or long in the command window and gets the integer or long input by the user.

Syntax

Visual Basic 
Function PromptForInteger( _
   ByVal Prompt As System.String, _
   ByVal DefaultValue As System.Integer, _
   ByRef Value As System.Integer _
) As System.Boolean
C# 
System.bool PromptForInteger( 
   System.string Prompt,
   System.int DefaultValue,
   out System.int Value
)
JavaScript 
PromptForInteger( 
   Prompt : String,
   DefaultValue : Number
) : {
   Value : Number,
   Result : Boolean
}
COM native C++ 
HRESULT PromptForInteger( 
   BSTR Prompt,
   LONG DefaultValue,
   LONG* Value,
   VARIANT_BOOL* Result
) 
C++ 
DSRESULT PromptForInteger( 
   const dsString& Prompt,
   long DefaultValue,
   long* Value,
   bool* Result
) 

Parameters

Prompt
Text of prompt
DefaultValue
Default integer or long value
Value[out]
Integer or long value
Result[out] or Return Value
True if the prompt is displayed in the command window, false if not
 

See Also

Availability

DraftSight V1R1.1