Le 15 déc. 06 à 22:10 Soir, Norman Palardy a écrit:
On Dec 15, 2006, at 1:17 PM, Arnaud Nicolet wrote:
Hi,
I don't understand why it is allowed:
dim f As Folderitem
dim w As WinNewFolderName
w=new WinNewFolderName
if f=nil then
MsgBox "Cannot use an invalid file."
Return
end if
w.showModal
WinNewFolderName is a sheet window. Now, if f is nil, the window
(w), already created, is shown inside the message box. Well, I
understand that a message box is also a window, but, in my buggy
code, should not the window be displayed at the return statement,
after the message box has been closed?
It seems obscure to me. Any hint welcome.
Do this instead
dim f As Folderitem
dim w As WinNewFolderName
if f=nil then
MsgBox "Cannot use an invalid file."
Return
end if
w=new WinNewFolderName
w.showModal
Thank you. As I said, my code was buggy. I've been surprised that a
sheet dialog appeared inside a message box.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>