PromptForKeyword Method (ICommandMessage)

PromptForKeyword Method (ICommandMessage) | Send Feedback
See Also Example

Result[out]
  True if the prompt is displayed in the command window, false if not

Prompt
  Text of prompt to display in the command window

KeywordsStrArray
  Array of keywords

DefaultValue
  Default string value

Value[out]
  Keyword string

Obsoleted. Superseded by ICommandMessage::PromptForKeyword2.

# Syntax

Visual Basic |
--- | ---
    Function PromptForKeyword( _
       ByVal Prompt As System.String, _
       ByVal KeywordsStrArray As System.Object, _
       ByVal DefaultValue As System.String, _
       ByRef Value As System.String _
    ) As System.Boolean

C# |
--- | ---
    System.bool PromptForKeyword(
       System.string Prompt,
       System.object KeywordsStrArray,
       System.string DefaultValue,
       out System.string Value
    )

JavaScript |
--- | ---
    PromptForKeyword(
       Prompt : String,
       KeywordsStrArray : Array,
       DefaultValue : String
    ) : {
       Value : String,
       Result : Boolean
    }

COM native C++ |
--- | ---
    HRESULT PromptForKeyword(
       BSTR Prompt,
       VARIANT KeywordsStrArray,
       BSTR DefaultValue,
       BSTR* Value,
       VARIANT_BOOL* Result
    )

C++ |
--- | ---
    DSRESULT PromptForKeyword(
       const dsString& Prompt,
       const dsStringArray& KeywordsStrArray,
       const dsString& DefaultValue,
       dsString* Value,
       bool* Result
    )

#### Parameters

Prompt
  Text of prompt to display in the command window
KeywordsStrArray
  Array of keywords
DefaultValue
  Default string value
Value[out]
  Keyword string
Result[out] or Return Value
  True if the prompt is displayed in the command window, false if not

# Example

Insert Hatch by Entities or Internal Points (VB.NET)
Insert Hatch by Entities or Internal Points (C#)

# See Also

####

ICommandMessage Interface
ICommandMessage Members

# Availability

DraftSight V1R1.4