Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Monetary fields in ListBox with 2 decs.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00120201
Message ID:
00120203
Vues:
17
>When I set the RowSource Property in a ListBox to a Select-SQL and the type of the selected field is monetary, is selected with 4 decimals.
>I need to show this field with 2 decimals into a ListBox.
>
>Example:
>
>Field AMOUNT of Invoice Table is Monetary.
>
>List.RowSource = 'Select AMOUNT From Invoice Into Cursor curAmount'
>List.RowSourceType = 3 && Select-SQL
>
>Result:
>1000.0000
>1256.0000
>3240.5600
>...
>
>I Need the follow result:
>1000.00
>1256.00
>3240.56
>
>Please, send me any suggestion. Thanks

Simple suggestion:
select str(field2,10,2) as newfield from table1
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform