Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Help! Common Dialog Through OLE2 Problems!
I've seen so many messages about problems opening Common Dialog, so if anyone
is in the same boat please reply. Opening the Common Dialog through OLE2
seems(?!?) to work, until trying to recover the filename. The code below
works up until the last line, when there is no filename returned. Am I being
dumb or is this an error or what?
ole_app := ole2.create_obj('MSComDLG.CommonDialog'); ole2.set_property(ole_app, 'Filter', 'Word Docs(*.doc)|*.doc'); ole2.set_property(ole_app, 'DialogTitle', 'Choose File'); ole2.set_property(ole_app, 'InitDir', 'C:\'); ole2.set_property(ole_app, 'CancelError', 'FALSE'); ole2.set_property(ole_app, 'FileName', 'None');ole2.invoke(ole_app, 'ShowOpen');
Any help appreciated
Thanks in advance Fraser
-----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own Received on Fri Apr 23 1999 - 08:19:07 CDT
![]() |
![]() |