The "value" of the multilist control simply positions the list with "value"
at the top. The choices are not kept in an array; reading those multiple
values requires indeed having a loop to go through INTO values one at the
time until none is left.

Conclusion: one cannot "assign" multiple values to multilist control.

Jacques PARIS

e-mail    [EMAIL PROTECTED]

For MapInfo support, see the Paris PC Consult enr. site  at
http://www.total.net/~rparis/gisproducts.htm

For MapBasic questions see the J.Paris site at
http://www.total.net/~jakesp/index.htm

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of David Booth
Sent: November 3, 2000 9:40 AM
To: [EMAIL PROTECTED]
Subject: MI-L: multi list boxes

Hi there,

Is it possible to display a dialog with a multi-listbox where more than one
item is selected initially (in other words, immediately the dialog is
displayed - so there isn't a chance to use the alter control value syntax
from a handler).

I've been trying things along the lines of:

declare sub main

sub main
 dim int_loop_count as integer
 dim str_list(10) as string

 for int_loop_count=1 to 10
  str_list(int_loop_count)=str$(int_loop_count)
  next

 dialog
 title "blah"
 control multilistbox
  title from variable str_list
  value "1;2;4"

 end sub

Which, not surprisingly, doesn't work!

Apologies if this has come up before, and many thanks in advance.

---------------------------------------------
David Booth
Senior GIS Officer
Merseyside Information Service



_______________________________________________________________________
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, send e-mail to [EMAIL PROTECTED] and
put "unsubscribe MapInfo-L" in the message body.



_______________________________________________________________________
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, send e-mail to [EMAIL PROTECTED] and
put "unsubscribe MapInfo-L" in the message body.

Reply via email to