Hi Hendrik, You cannot get the selected items from a MultiListBox just by using the Into operator.
You need to add a button handler to the OK button, and in it use ReadControlValue repeatedly to get the values from your MultiListBox. Best regards/Med venlig hilsen Lars V. Nielsen GisPro, Denmark http://www.gispro.dk/ http://hjem.get2net.dk/lars-online/ WGS84: 10.26'40"E 55.20'20"N ----- Original Message ----- From: "Possberg, Hendrik" <[EMAIL PROTECTED]> To: "Mapinfo-List (E-Mail) (E-Mail)" <[EMAIL PROTECTED]> Sent: Wednesday, July 30, 2003 2:54 PM Subject: MI-L MB- MultilistBox Dear List, i am looking for a way to let the user select the layers he/she wants to open. I found the multilistbox syntax, but the returned values are confusing me. -Selecting only one item the ReadControlValue returns the right value. -Selecting downwards the ReadControlValue loops and returns the right items. -Selecting upwards more than one item ReadControlValue always returns the value of the first selection. - i_var is always set to 1. What can I do to prevent this? Heres my sample code. Dialog Control MultiListBox Position 5 , 60 Width 50 Height 40 ID 99 Calling CHECKVZE Title "Strassen;Bebauung;Eisenbahn;Fluss;Flusslauf;Orte" Into i_var Control OKButton Control CancelButton Sub CHECKVZE print "i_var :"+i_var Print "???: " + ReadControlValue(99) End Sub Any help would be appreciated. Thanks in Advance. Hendrik Po�berg Geodaten Hellersbergstr. 14 41460 Neuss Phone: 02131-10 97 51 Fax: 02131-10 97 77 mailto:[EMAIL PROTECTED] Aktuelles: *** Immer am Ball? Einmal pro Quartal erscheint unser microm eNewsletter, der Sie aktuell ueber die neuesten Entwicklungen bei microm rund um unsere Daten, Systeme und Dienstleistungen informiert. Einfach eine kurze E-Mail mit Name und E-Mail Adresse an <mailto:[EMAIL PROTECTED]> senden! Die naechste Ausgabe erscheint im September. *** ____________________________________________ Diese Nachricht wurde elektronisch versandt und ist daher auch ohne Unterschrift rechtsgueltig. Der Inhalt dieser E-Mail enth�lt vertrauliche Informationen. Das Kopieren und die Weitergabe an Dritte ist nicht gestattet. Sollten Sie diese E-Mail irrtuemlich von uns erhalten haben, bitten wir Sie, diese zu vernichten und uns darueber zu informieren. Im Voraus vielen Dank. ____________________________________________ --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 7824 --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 7825
