----- Original Message -----
From: David Watkins <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 11, 2000 5:17 AM
Subject: MI MultiListBox - Just how does that work
>
> I am trying to use the MultiListBox command in MapBasic and have set up
the control in the dialog but can't figure out a way to return entries from
the list box.
>
> What I am trying to do is query a temporary table that summarises entries
in a column and populates a multi list box. This part works well and I can
populate the multi list box with what I want from a temporary table. The
problem I have is that I can't figure out how to trap the selections in the
multi list box (I want to use what the user chooses to limit what a sql
query selects).
>
> I have already tried to call a handler routine (from the dialog) and have
played around with the ReadControlValue command, but it isn't clear from the
MapBasic manuals how exactly to trap mulitple selections made in a multi
list box. Eventually I want the code to provide me with string values that
match the entries selected from the multi list box.
In your handler routine, each call of ReadControlValue(I)
(where I is the ID of your MultiListBox)
will give you the index of one of the selections.
Keep calling ReadControlValue() until you get a 0. Then you'll know
there are no more selections.
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]