Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Large numbers with high decimal precision
Message
De
30/08/2011 18:22:13
 
 
À
30/08/2011 15:38:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Divers
Thread ID:
01522171
Message ID:
01522344
Vues:
41
>>
>>Thanks, guys. I'm pretty math impaired. I was thinking that I could use a numeric field for data entry but bind to a textcolumn and have a trigger on the backend translate that to decimal(22,10) Does that sound workable. ?
>
>
>Dunno - do you use that field to calculate anything ?
>
>If not - leave it as text/string - use a RegEx to validate the input
>
>As to the trigger question - cannot answer - but if possible - I think you need two fields - or maybe better, have string field and add a calculated field decimal(22,10). Then you have only the string field to update

yes, the 2 fields was what I had i mind. I like the idea of text with Regex validation - hadn't thought of using regex but it is a good idea.


Charles Hankey

Though a good deal is too strange to be believed, nothing is too strange to have happened.
- Thomas Hardy

Half the harm that is done in this world is due to people who want to feel important. They don't mean to do harm-- but the harm does not interest them. Or they do not see it, or they justify it because they are absorbed in the endless struggle to think well of themselves.

-- T. S. Eliot
Democracy is two wolves and a sheep voting on what to have for lunch.
Liberty is a well-armed sheep contesting the vote.
- Ben Franklin

Pardon him, Theodotus. He is a barbarian, and thinks that the customs of his tribe and island are the laws of nature.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform