>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement