Before I code it on my own, is there an extension that automatically will add commas for long numbers?
Example:
1000 would be 1,000
Thanks.
Printable View
Before I code it on my own, is there an extension that automatically will add commas for long numbers?
Example:
1000 would be 1,000
Thanks.
Try this example I made back in 2006: http://x.jflom.com/files/DigitGrouping.zip
Sure does work... I'll use that if there are no objects that can do it with one expression.
Thanks, Joshtek!
I think the Formatted Object by Sphax might be what you are looking for.
Try the expression under Manipulations: Get number with thousands separated.
That may do the trick. Let us know.
In my application I am dealing with dollar amounts. I currently use the precision calculator to generate the correct values. I then use the set number of decimals after the decimal point to get 2 decimals. Now with the Formatted Object I can add thousands separters.
One problem is how do you read it back in as a number. I there an extension that takes 1,234.44 and reads it as the number 1234.44 or 1,000,000.00 to 1000000.00?
Novabrain,
I couldn't find a "Manipulations" or "Get number with thousands separated" expression.
I'm about to see if I have the latest version of Formatted Object.
You have to use the expression editor to get to it. This is a trick of MMF you will find all the time in several cases. You want an action but can't find it unless you use the expression box.
Example: You have a number in an edit box. Then in the event editor you say
Condition: Set current text of edit box to
and for the action you use the expression editor. Here you click on retreive data from object. You then will see the Manipulations you are looking for.
I understand Actions, Conditions, and Expressions... I just can't find "Get number with thousands separated" anywhere in the expressions menu of the Fomatted Object...
droberson, do you see it?
Thanks.
It's the Sphax Formatted ObjectQuote:
Originally Posted by aidmm
I'm using the Sphax Formatted Object.
It looks like I'll need an exact walk through... this is what I'm doing:
Start of Frame -> Change Alterable String to (Expression goes here... this is where I retrieve data from Formatted Object)
"Get Number With Thousands Separated" is not here, though.
I'm uploading a picture now.Quote:
Originally Posted by aidmm
EDIT:
http://www.clickalize.com/b.png
whoa! I have something totally different... here's my screen shot:
http://www.fiveamproductions.com/stu...dObjectExp.jpg
I think you need to update yours. :)
Although I've installed the "latest version" I'm going to delete what I have and try again.
If that doesn't work, I can upload my version for you.
I used FusionUpdater last night to get the lastest version, but it never overwrited the current version installed. Just now I manually deleted the files, then ran FusionUpdater again, and now I see what you see, Brandon!!
Thanks for your patience, everyone! It works a charm!
Good to know. :)Quote:
Originally Posted by aidmm
Yes I found it without a problem. Bring up the Expression Editor, Click on the "Get Data from and Object" Button.
(You can do this by trying to set a global string in the Special Object.)
A popup dialog should a appear, point to the Formatted Oject and right click, point to Manipulations, your option is second from the bottom.
If you still have a problem let me know.
droberson,
The problem was that I had an older version of the Formatted Object. Now the Expressions list contains the correct (updated) "Manipulation" folder, as well as others not in the older version.
Problem solved!
Thanks, all!