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
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
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...
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
--