wwUtils::SaveFileDialog

Displays a Save File Dialog that can be used to prompt for files to save. Unlike PUTFILE() this function returns the filename and path in proper case of the file name selected.

SaveFileDialog(lcFolder,lcTitle,
               lcDefaultExt,lcExtensions,
               llPromptForOverwrite)

Return Value

Filename or ""

Parameters

lcFolder
Initial folder to start the dialog in.

lcTitle
The title of the dialog

lcDefaultExt
Default extension like png, txt or pdf.

lcExtensions
"Png Image|.png|JPEG Image|.jpeg|Gif Image|.gif|Tiff Image|.tiff|All Files|."

llPromptForOverwrite If .T. prompts if a file is going to be overwritten

Remarks

Requires wwDotnetBridge and .NET

Example

lcSaveToImage = SaveFileDialog(lcImagePath,"Save Image","png",;
                               "Png Image|*.png|JPEG Image|*.jpg;*.jpeg|All Files|*.*",.F.)

IF !EMPTY(lcSaveToImage)
   * ...
ENDIF                               

See also:

Class wwUtils

© West Wind Technologies, 2023 • Updated: 01/18/19
Comment or report problem with topic