Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

question: d2kwutil.pll (WIN_API_DIALOG.SAVE_FILE)

624 views
Skip to first unread message

Ken Halsted

unread,
Feb 4, 2000, 3:00:00 AM2/4/00
to
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: ken...@mail.snider.net


Valeri Sorokine

unread,
Feb 7, 2000, 3:00:00 AM2/7/00
to Ken Halsted
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.

--
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: vsor...@dd.ru ; http://www.dd.ru

Ken Halsted

unread,
Feb 7, 2000, 3:00:00 AM2/7/00
to
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 <vsor...@dd.ru> wrote in message
news:389E8799...@dd.ru...

Valeri Sorokine

unread,
Feb 7, 2000, 3:00:00 AM2/7/00
to Ken Halsted
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

--

0 new messages