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:13:30
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00570884
Message ID:
00570992
Vues:
23
>Hi everyone,
>
>I read the MS knowledgebase article for VFP 3.0 relative to How to Store Numeric Values that come from a Combo Box, but does this mean you can't have a ControlSource in a combobox that is tied to a numeric field? My ControlSource was m.fieldname. That makes things a bit messy.
>
>I see the solution that MS suggests in the article, but I don't like it. Is there a better way to have the values 0 thru 9 in the RowSource as values and get them to save as numeric values in the table? It's working to show the numeric field values in my table using ControlSource, but MS says don't do it that way. Confused, but working on it.
>

Hello Steve,

Do these values need to be numeric? IOW, are you going to do math with these values? If it is simply a status code field (or something like that), you can avoid this issue altogether by using a character field of width 1. Input mask of '9' on the field would only allow 0-9 to be entered.

HTH,
Steve Gibson
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform