I have stumbled upon a situation that I can not explain/understand.
Can someone please explain this?
If the code above is executed I get both messages, From MessageBox as well as from MsgBox.
However if I execute this:
There is only one message, the one from MsgBox,
The MessageBox one disappeared, went for a "walk", or just refuses to do something
Anybody have any ideas?
It is not so important in the context of this example, but I am sure there must be a valid explanation for it.
Some basic principle that I am unaware of, that will sneak up and bite when least expected.
Can someone please explain this?
Code:
' Dialog Show Modal hDlg, Call ShowDIALOG8Proc To lRslt Dialog Show Modeless hDlg, Call ShowDIALOG8Proc To lRslt MessageBox hDlg, "Messagebox - result = " + Str$(lRslt), "RB", %mb_ok MsgBox "MsgBox - result = " + Str$(lRslt), %mb_taskmodal, "RB"
However if I execute this:
Code:
Dialog Show Modal hDlg, Call ShowDIALOG8Proc To lRslt ' Dialog Show Modeless hDlg, Call ShowDIALOG8Proc To lRslt MessageBox hDlg, "Messagebox - result = " + Str$(lRslt), "RB", %mb_ok MsgBox "MsgBox - result = " + Str$(lRslt), %mb_taskmodal, "RB"
The MessageBox one disappeared, went for a "walk", or just refuses to do something
Anybody have any ideas?
It is not so important in the context of this example, but I am sure there must be a valid explanation for it.
Some basic principle that I am unaware of, that will sneak up and bite when least expected.
Comment