Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Numeric value from a combo box in a grid
Message
De
27/04/1998 20:32:03
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00095252
Message ID:
00095261
Vues:
21
Evan,

I think your best bet is to turn it into a character value FOR the Combo, work with it as char., then store it back as numeric when done.

Cheers,
Jim N

>>>I am using VFP3.0b for Windows.
>>>
>>>I have a combo box that returns a numeric value into a numeric field of a table. Not unexpectedly, the value that is stored into the field is the recno of the cursor not the bound value.
>>>
>>>Example: if 999 is the 15th value, then 15 is stored into the table.
>>>
>>>I have come across this is 2.6 and 3.0 before.
>>>
>>>How do I write the proper value into the field?
>>
>>There was an addition in Visual FoxPro 5 to allow us to bound a numeric field in a combo box. In Visual FoxPro 3, a workaround has to be done.
>
>That's unfortunate. I tried:
>
>REPLACE mytable.myfield WITH THIS.VALUE
>
>but THIS.VALUE already seemed to have recno stored in it even though the combo box displays the proper value. Any idea where the proper value is stored or how to access it (other than using a GOTO N in the cursor). It has to be stored somewhere since it is displayed on the screen.
>
>P.S. Congrats.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform