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

From: Valeri Sorokine <vsorokin_at_dd.ru>
Date: Mon, 07 Feb 2000 11:51:37 +0300
Message-ID: <389E8799.8D45A121_at_dd.ru>


[Quoted] 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.
> --
> _________________
> Kenneth W. Halsted
> Mountaire Corporation
> ph: (501) 399-8812
> url: http://www.mountaire.com
> email: kenman_at_mail.snider.net

-- 
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 - 09:51:37 CET

Original text of this message