Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Datatype possible ?
Message
 
To
18/01/2000 07:33:04
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00319357
Message ID:
00319362
Views:
10
Try using SELECT TRANSFORM(number*price, "999999.99") AS costs ...

This is not the *correct* way of doing it but, as long as you don't have large amounts of data to select from, it should be sufficient.

>Hello
>
>I have a select statement:
>
>select (number * price) as costs from TABLENAME
>
>I want price to be in the format like:
>####,## So 2 places after the comma. Can i define a datatype
>for Costs somehow ?
>
>Thanks
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform