Re: question: d2kwutil.pll (WIN_API_DIALOG.SAVE_FILE)

From: Valeri Sorokine <vsorokin_at_dd.ru>
Date: Mon, 07 Feb 2000 20:19:46 +0300
Message-ID: <389EFEB2.66D7B111_at_dd.ru>


Hi Ken,

The code should be like this (don't make the first parameter as NULL):

     lv_filename := WIN_API_DIALOG.SAVE_FILE(
                      '*.*',
                      NULL,
                      'C:\',
                      'All Files(*.*)|*.*|',
                      TRUE);

Sorry for delay, I was out of office... :-)

See ya,

Valeri

Ken Halsted wrote:
>
> Valeri,
>
> Thanks. I tried but that didnt' help. Is there anything other than
> d2kwutil.dll or d2kwutil.pll that I need to make this work? Also, I am not
> having any trouble with OPEN_FILE, just this one.
>
> how does lv_filename need to be declared. I've got VARCHAR2(255).
>
> Maybe this is a bug of some sort :-)
>
> C-ya,
>
> Ken.
>
> Valeri Sorokine <vsorokin_at_dd.ru> wrote in message
> news:389E8799.8D45A121_at_dd.ru...
> > Hello Ken,
> >
> > Try to use this call:
> >
> > lv_filename := WIN_API_DIALOG.SAVE_FILE(
> > NULL,
> > NULL,
> > 'C:\',
> > 'All Files(*.*)|*.*|',
> > TRUE);
> >
> > And remember (if you want to use 'AdvancedFlags'):
> >
> > "...To Set the Advanced_Flags varaible, just add the
> > required flags together. The default is:
> > WIN_API.OFN_PATHMUSTEXIST + WIN_API.OFN_FILEMUSTEXIST +
> > WIN_API.OFN_HIDEREADONLY + WIN_API.OFN_NOCHANGEDIR
> > ..."
> >
> > 'RaiseExceptions' = FALSE by default.
> >
> > Hope that helps.
> >
> > Ken Halsted wrote:
> > >
> > > I have this behind a when-button-pressed trigger:
> > >
> > > DECLARE
> > > lv_filename VARCHAR2(255);
> > > BEGIN
> > > lv_filename := WIN_API_DIALOG.SAVE_FILE(
> > > NULL,
> > > NULL,
> > > 'C:\',
> > > 'All Files(*.*)|*.*|',
> > > TRUE, -- modal, TRUE or FALSE
> > > WIN_API.OFN_HIDEREADONLY,
> > > FALSE );
> > >
> > > MESSAGE('Filename = '||lv_filename);
> > > MESSAGE('Filename = '||lv_filename);
> > >
> > > :DUAL.TXT_OUTPUT_FILE := lv_filename;
> > > synchronize;
> > > END;
> > >
> > > Why is lv_filename null when I select a file to overwrite on my C drive?
> > >
> > > Any help at all would be much appreciated. :-)
> > >
> > > Ken.

-- 
Valeri Sorokine
Oracle Certified Application Developer, Rel.2
ProSoft, Russia, Moscow, Information Systems Division
Phone: +7 (095) 234 0636 ; FAX: +7 (095) 234 0640
E-mail: vsorokin_at_dd.ru   ; http://www.dd.ru
Received on Mon Feb 07 2000 - 18:19:46 CET

Original text of this message