Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox Question
Message
From
16/03/2015 13:44:10
 
 
To
15/03/2015 11:14:14
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP3
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01616819
Message ID:
01616866
Views:
113
>I have a listbox that has ROWSOURCE set to 50,100,200 and ROWSOURCETYPE set to VALUE.
>
>When I click on the listbox it returns values of 1, 2 or 3 (instead of the desired 50,100 or 200).
>It has to be a simple setting somewhere, but I can't seem to find it.

This is a bit more work, but in the Init() event add:
this.AddListItem("50", 50)
this.AddListItem("100", 100)
this.AddListItem("200", 200)
The items in a list box are characters. In the above you get the answer in numeric that you want via the property ListItemId.
Previous
Reply
Map
View

Click here to load this message in the networking platform