PromptForDouble Method (ICommandMessage)

PromptForDouble 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 double value

Value[out]
  Double value

Displays the specified prompt and default value for the double in the command window and gets the double input by the user.

# Syntax

Visual Basic |
--- | ---
    Function PromptForDouble( _
       ByVal Prompt As System.String, _
       ByVal DefaultValue As System.Double, _
       ByRef Value As System.Double _
    ) As System.Boolean

C# |
--- | ---
    System.bool PromptForDouble(
       System.string Prompt,
       System.double DefaultValue,
       out System.double Value
    )

JavaScript |
--- | ---
    PromptForDouble(
       Prompt : String,
       DefaultValue : Number
    ) : {
       Value : Number,
       Result : Boolean
    }

COM native C++ |
--- | ---
    HRESULT PromptForDouble(
       BSTR Prompt,
       DOUBLE DefaultValue,
       DOUBLE* Value,
       VARIANT_BOOL* Result
    )

C++ |
--- | ---
    DSRESULT PromptForDouble(
       const dsString& Prompt,
       double DefaultValue,
       double* Value,
       bool* Result
    )

#### Parameters

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

# See Also

####

ICommandMessage Interface
ICommandMessage Members
ICommandMessage::PromptForDoubleOrKeyword Method ()

# Availability

DraftSight V1R1.1