Displays the specified prompt, local keywords, and default value for the keyword in the command window and gets the keyword input by the user.
.NET Syntax
COM native C++ | |
---|
HRESULT PromptForKeyword2(
const dsString& Prompt,
,
const dsString& ErrorMsg,
,
VARIANT GlobalKeywordStrArray,
,
VARIANT LocalKeywordStrArray,
,
long PromptInit,
,
const dsString& DefaultValue,
,
dsString* Value
,
dsPromptResultType_e* Result
) |
C++ | |
---|
DSRESULT PromptForKeyword2(
BSTR Prompt,
,
BSTR ErrorMsg,
,
VARIANT GlobalKeywordStrArray,
,
VARIANT LocalKeywordStrArray,
,
LONG PromptInit,
,
BSTR DefaultValue,
,
BSTR* Value
,
dsPromptResultType_e* Result
) |
Parameters
- Prompt
- Text to display as the prompt in the command window
- ErrorMsg
- Error message to display in the command window when the user input is invalid
- GlobalKeywordStrArray
- Array of global keywords, which are typically language independent
- LocalKeywordStrArray
- Array of local keywords, which are typically translated to the local language
- PromptInit
- Prompt initialization as defined in dsPromptInit_e (see Remarks)
- DefaultValue
- Default value for the keyword to display in the prompt in the command window (see Remarks)
- Value[out]
- Keyword input by the user
Parameters
- Result[out] or Return Value
- Result as defined in dsPromptResultType_e
Remarks
See Also
Availability
DraftSight V1R4.0