• Example of Get_File_Name Function in Oracle Forms


    Displays the standard open file dialog box where the user can select an existing file or specify a new file.
    Syntax
    FUNCTION GET_FILE_NAME
    (directory_name VARCHAR2,
    file_name VARCHAR2,
    file_filter VARCHAR2,
    message VARCHAR2,
    dialog_type NUMBER,
    select_file BOOLEAN;

    Returns VARCHAR2

    See also:
    A Practical example of Get_File_Name built-in

    Parameters
    directory_name Specifies the name of the directory containing the file you want to open. The default value is NULL. If directory_name is NULL, subsequent invocations of the dialog may open the last directory visited.
     
    file_name Specifies the name of the file you want to open. The default value is NULL.
     
    file_filter Specifies that only particular files be shown. The default value is NULL. File filters take on different forms, and currently are ignored on the motif and character mode platforms. On Windows, they take the form of Write Files (*.WRI)|*.WRI| defaulting to All Files (*.*)|*.*| if NULL. On the Macintosh the attribute currently accepts a string such as Text.
     
    message Specifies the type of file that is being selected. The default value is NULL.
     
    dialog_type Specifies the intended dialog to OPEN_FILE or SAVE_FILE. The default value is OPEN_FILE.

    select_file
     Specifies whether the user is selecting files or directories. The default value is TRUE. If dialog_type is set to SAVE_FILE, select_file is internally set to TRUE.
    GET_FILE_NAME examples
    /*
    ** Built-in: GET_FILE_NAME
    ** Example: Can get an image of type TIFF.
    */
    DECLARE
    filename VARCHAR2(256)
    BEGIN
    filename := GET_FILE_NAME(File_Filter=> ’TIFF Files
    (*.tif)|*.tif|’);
    READ_IMAGE_FILE(filename, ’TIFF’, ’block1.imagefld);
    END;


    Like us to get notifications for free source code in future, thanks.
  • 相关阅读:
    bzoj 1016 JSOI2008 最小生成树计数
    bzoj 1070 SCOI2007 修车
    bzoj 1042 HAOI2008 硬币购物
    bzoj 1132 POI2008 Tro
    bzoj 1227 SDOI2009 虔诚的墓主人
    bzoj 1024 SCOI2009 生日快乐
    1103 POI2007 大都市meg
    bzoj 1009:[HNOI2008]GT考试
    noip2006T1 能量项链
    bzoj 1006: [HNOI2008]神奇的国度
  • 原文地址:https://www.cnblogs.com/quanweiru/p/6220198.html
Copyright © 2020-2023  润新知