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