Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ComboBox With Zero-based Array
Message
From
09/07/2000 15:35:05
Cindy Winegarden
Duke University Medical Center
Durham, North Carolina, United States
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00390001
Message ID:
00390008
Views:
10
The values in the field range between 0 and something.

I have an array(x, 2) like:

Array(1, 1) = "First value"
Array(1, 2) = "Second value"
Array(1, 3) = "Third value"
Array(1, 4) = "Fourth value"
Array(1, 5) = "Fifth value"
Array(2, 1) = 0
Array(2, 2) = 1
Array(2, 3) = 2
Array(2, 4) = 3
Array(2, 5) = 4

When the table has the value 3, the combo shows "Second value" (which is the third row in the array) and when the table has the value 0 the combo shows blank.





>>I have a combo box to choose values ranging from 0 to whatever.
>>
>>Before I write code to always add one to the table value, and then subtract one when writing to the table, anybody got any better ideas?
>
>I don't understand why you need to add 1 then subtract 1. What is the issue?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform