listbox1.Items.ValueFromIndex problem ?
Posted on 2003-12-10
i have a listbox, there are email addresses in it as an items,
i want to take the value from a listbox item, and set it as a string which i declared earlyer let's say "email". toEmail is an integer that declares which listbox item i will use.
The problem is that if i have email@example.com in the listbox i get firstname.lastname@example.org as a value of the email string.
It eats one character... how to fix that ?
My Code Is:
email := tolistbox.Items.ValueFromIndex[toemail];
Thanks in advance!