Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Numeric combo box arrays
Message
 
À
10/02/1999 15:40:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00186189
Message ID:
00186191
Vues:
19
>I have a combo box that is populated with a Numeric Array. At one point in my system, when I select an item from the combobox and save the data into the database, it saves the number of the array item and not its value.
>
>For ex:
>1. The array has the following values[2,4,6,9].
>If I select 6, it is saved in the database as 3, b'cos it is the third element in the array.
>2. Array[0,1,2,3,4]. If I select 2, 3 is stored in the database.

If you are using a version of foxpro that has the "boundto" property in the combobox, set it to true. Otherwise make your array as character array then convert the character back to a numeric when you write it to the field (in the lostfocus event.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform