John Fannon wrote:
<snip>
> Sub handler
>
> Dialog Remove
>
> Do Case triggercontrol()
>
> Case 1
> call anotherRoutine
> Case 2
> call anotherRoutine
> End Case
>
> End Sub
Dialog Remove/Preserve should be the last statement
before end sub or exit sub inside a control handler.
Any Dialog Remove/Preserve before the handler's "end sub"
should be immediately followed by an "exit sub".
(You are correct to use Dialog Remove for a dialog
that has no OK button).
Since sub "handler" removes the dialog unconditionally,
you should consider attatching it to an OKButton or
a CancelButton instead of a regular button. If pressing OK
has no meaning to the dialog, make it a CancelButton and
give it a different title, such as "Done":
control CancelButton title "Done" calling handler
HTH
Spencer
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]