Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ComboBox With Zero-based Array
Message
De
09/07/2000 15:35:05
Cindy Winegarden
Duke University Medical Center
Durham, Caroline du Nord, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00390001
Message ID:
00390008
Vues:
11
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?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform