PromptForFileName Method (ICommandMessage) Send Feedback
See Also 
Result[out]
True if the prompt is displayed in the command window and a document's path and file name are returned, false if not
Prompt
Text of prompt to display in the command window
FileName[out]
Document's path and file name
Displays the specified prompt in the command window and gets the file name input by the user.

Syntax

Visual Basic 
Function PromptForFileName( _
   ByVal Prompt As System.String, _
   ByRef FileName As System.String _
) As System.Boolean
C# 
System.bool PromptForFileName( 
   System.string Prompt,
   out System.string FileName
)
JavaScript 
PromptForFileName( 
   Prompt : String
) : {
   FileName : String,
   Result : Boolean
}
COM native C++ 
HRESULT PromptForFileName( 
   BSTR Prompt,
   BSTR* FileName,
   VARIANT_BOOL* Result
) 
C++ 
DSRESULT PromptForFileName( 
   const dsString& Prompt,
   dsString* FileName,
   bool* Result
) 

Parameters

Prompt
Text of prompt to display in the command window
FileName[out]
Document's path and file name
Result[out] or Return Value
True if the prompt is displayed in the command window and a document's path and file name are returned, false if not
 

See Also

Availability

DraftSight V1R2.0