Home » Developer & Programmer » Forms » Rename a file in forms
Rename a file in forms [message #78886] Tue, 26 March 2002 19:39 Go to next message
Anil
Messages: 80
Registered: September 2001
Member
how i can use win_api_dialog function

when i write this function like
Win_Api_Dialog.Save_File or
Win_Api_Dialog.open_File

error 'Win_Api_Dialog.Save_File' must be declared.
Re: Rename a file in forms [message #79171 is a reply to message #78886] Thu, 09 May 2002 06:47 Go to previous message
Alejandro Gimenez
Messages: 1
Registered: May 2002
Junior Member
Win_Api_Dialog.Save_File

Description

Displays a 'File Save As' dialog box. You can control the dialog title, example file name, start directory and file filter. The function returns the path and name of the file that the user selects in the dialog. In addition to the capabilities of the standard built-in Get_File_Name, this function provides access to Windows-specific features that allow you to customize the dialog extensively. It returns the full path and name of the selected file.

Syntax

FUNCTION Win_Api_Dialog.Save_File
(SampleName IN VARCHAR2,
Title IN VARCHAR2 DEFAULT 'Save File As',
StartDirectory IN VARCHAR2 DEFAULT '$WINDIR$',
FileFilter IN VARCHAR2 DEFAULT 'All files(*.*)&#124*.*|',
Modal IN BOOLEAN DEFAULT TRUE,
AdvancedFlags IN PLS_INTEGER DEFAULT WIN_API.OFN_FLAG_DEFAULT,
RaiseExceptions IN BOOLEAN DEFAULT FALSE);

Parameters

SampleName The example file name
Title The Title for the Dialog Box
StartDirectory Directory from which the dialog starts
FileFilter Restrict the list of files. The filter string should be in the format 'Description&#124Format|'
Modal Whether the dialog is modal or modeless
AdvancedFlags Set the attributes of the File dialog. See your Microsoft documentation for details on each flag.You can set several flags by adding values of each constant together.
RaiseExceptions If TRUE, then if no filename is returned, the exception NO_DATA_FOUND will be raised.

Returns

VARCHAR2
Previous Topic: Forms 2 & 3
Next Topic: Searching for duplicates on many fields
Goto Forum:
  


Current Time: Thu Apr 25 03:02:42 CDT 2024