ASP VBScript Details :: Easy way to format numbers?
This thread was displayed: 1,223 times
Starting with 17th May 2007, Adobe Systems will stop offering support for any version of the discontinued InterAKT products. As a result, we will not answer to new support incidents starting with May 17th, 2007. Pending support incidents will still be followed in order to be closed. The product forums will remain open and be transformed in user-to-user forums. The general forums will be made read-only and not allow new posts or comments.
For more information about the affected products visit: www.interaktonline.com/Support/
Richard Evans
08-06-2006 23:34:05 GMT +2
|
Is there an easy way to format numbers?
I need numbers with commas for thousands and a chosen number of decimal places like 12,345.67, currency with a symbol, commas for thousands and two decimal places £2,500.00 or no decimal places £2,500, percentages with one 12.5% or two decimal places 37.50% etc
And how can I right align them?
|
|
|
Ionut MOICIANU
08-07-2006 18:21:48 GMT +2
|
Hello Richard,
This has nothing to do with NeXTensio. You should check the PHP/ASP online documentation for this.
Regards,
Ionut
|
|
|
Richard Evans
08-09-2006 21:48:44 GMT +2
|
Trying to format the numbers in a NexTensio form - so thought there would be an easy way of doing it?
Are you saying once form is created it has to be edited by hand?
I am using ASP
|
|
|
Cristian MARIN[InterAKT]
08-10-2006 16:15:50 GMT +2
|
Hello Evans,
For the numbers we don't have formatting option. Indeed you'll have after the code is generated in the list for the price field you may use the native ASP function FormatNumber.
Regards,
Cristian MARIN
|
|
|
Richard Evans
08-10-2006 23:03:45 GMT +2
|
Hi Cristian
Brilliant!
Just looked at the Formats in the Binding Tab documentation again and found they do work in my version of the system - and do what I want with numbers.
Rather foolishly I didn't realise I had to select the field in the form before selecting it in the binding tab.
Thanks for the tip
Richard
|
|
|