Hi Tim,
you could populate an array via a function. Declare a global
variable for your array and use it in your custom function. I suppose there
will be no complain.
Good luck
Yannick Leduc
[EMAIL PROTECTED]
> -----Message d'origine-----
> De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Date: 21 janvier, 1999 12:26
> �: [EMAIL PROTECTED]
> Objet: MI MB: Listbox help
>
>
>
> Hi. I'm writing an application that has a listbox control.
> This listbox is
> populated by a semicolon-delimited string. After the user
> picks one of the
> items, I want to capture the name of the item they select. I
> tried using the
> Into clause in the control, and also ReadControlValue, but
> they both simply
> return the index position of the item in the list.
>
> Example - My string is "USA;Canada;Mexico". If the user
> chooses Mexico, I
> want to put the word "Mexico" into a string variable. Using
> the "into"
> clause, I get a 3. ReadControlValue returns a 3.
>
> I can't use an array because the string is returned from a
> call to a custom
> function, and arrays are not valid return types. Since the number and
> content of the values will change every time it's run, I
> can't use a Do Case
> type of thing.
>
> I'm starting to think I'll need to parse all of the values out of the
> delimited string and populate an array with them (yuk).
> There has to be a
> better way. What am I missing here?
>
>
> Thanks -
>
> Tim Nuteson
> Dayton Hudson Corp.
> [EMAIL PROTECTED]
> 612.370.6763
> ----------------------------------------------------------------------
> To unsubscribe from this list, send e-mail to
> [EMAIL PROTECTED] and put
> "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
>
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]