Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Commas from Numbers
Message
De
04/01/2000 23:53:39
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00313028
Message ID:
00313034
Vues:
54
>I'm doing an SQL statement to build a string field from a number field. I'll be returning the string to a web page, so I'd like to have it appear with commas.
>
>I could write a function to convert the number to a string, then concatenate to add the needed commas, but I suspect someone out there has a better way.
>
>I'm using:
>STR(Tquery.Calc_Gross)
>to show the value without commas
>
>Any suggestions?
>
>TIA

transform(Tquery.Calc_Gross, "999,999.99")
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform