Re: Choose File from Directory in Forms?

From: Fraser Boswell <Fraser.Boswell_at_spamme.ed.ac.uk>
Date: Wed, 16 Jun 1999 16:27:20 +0100
Message-ID: <3767C258.C0CA57A_at_spamme.ed.ac.uk>


Get_File_name is Forms 5 only, which is a pity, but the d2kutil library works well, didn't give me any problems. Heres a snippet which might help   v_file_chosen varchar2(1000);
BEGIN
  v_file_chosen := win_api_dialog.Open_File('Choose File', 'C:\',

                     'Word Documents (*.doc)|*.doc|',
                     TRUE, WIN_API.OFN_FLAG_DEFAULT, FALSE);
  IF length(v_file_chosen) > 0 THEN
    v_file_picked := TRUE;
etc.....

Fraser

Joaquin Garcia Santos wrote:

> if you are using forms 5.0, use the next built-in: GET_FILE_NAME.
>
> Kenny Gump escribió en mensaje <37667be8.0_at_news.mountain.net>...
> >Has anyone implemented the functionality to display a list of files and
> >choose a file name from the OS inside of Forms 4.5 (Windows 95)? Something
> >like in Word when you click File -> Open and the list of files comes up.
> >All I need is the filename returned.
> >
> >Thanks in advance,
> >
> >Kenny
> >
> >
> >
> >
Received on Wed Jun 16 1999 - 17:27:20 CEST

Original text of this message