From: John Fannon@WRCPLC on 01/19/2000 04:03 PM
To: [EMAIL PROTECTED]
cc:
Subject: MapBasic - problems with Dialog Remove statement
I have a dialog that has several control buttons on it but no OKButton. Each of
the buttons calls the same handler and the triggercontrol() function is used to
determine which button was pressed. The problem is that I need to be able to
remove the dialog once a button has been selected. I thought that the following
code would work:
Sub main
dialog
control button
title "button1"
id 1
Calling handler
control button
title "button2"
id 2
Calling handler
End Sub
Sub handler
Dialog Remove
Do Case triggercontrol()
Case 1
call anotherRoutine
Case 2
call anotherRoutine
End Case
End Sub
the dialog remove statement doesnt remove the dialog at all with the above code.
Yet if I take out the Do Case part it works fine!!....I can't quite understand
this. Does anybody know if this is a bug? or is it that I'm not supposed to be
using it in this way?
well any help would be good...
thanks
John
******************************************************************************************
John Fannon
GIS Group
WRc Plc
Frankland Rd
Blagrove
Swindon
SN5 8YF
email: [EMAIL PROTECTED]
Tel: 01793 865096
Fax: 01793 865001
******************************************************************************************
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]