Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Am I losing my mind? Combobox with numeric field overflo
Message
De
19/10/2001 13:26:16
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00570884
Message ID:
00571004
Vues:
37
This message has been marked as a message which has helped to the initial question of the thread.
>Hi ya Steve,
>
>Yes, the numbers are used in calculations, but I thought about changing to CHAR from NUMERIC too. Maybe I could and then use VAL() when the time comes to use them in calculations. I was just hoping to avoid changing tons of code because this is more of a bug fix than anything else and I know the calculations portion is a huge amount of code.
>

Steve,

A quick fix would be to leave at numeric in the table, but use character values in the list box.
* reading record
SCATTER MEMVAR MEMO
m.myfield1 = str(m.myfield1,0,0)
* saving record
m.myfield1 = val(m.myfield1)
GATHER MEMVAR MEMO
Steve Gibson
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform