formatting
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 137
- Joined: Thu Jul 24, 2008 11:22 pm
formatting
How do I set the numberfunction for dollars to have a comma between thousands i.e. 10,000,000.00
I haven't tested it, but this script might help:
http://thread.gmane.org/gmane.comp.ide. ... .user/1599
I don't believe you can do this (easily) with format or numberFormat.
Best,
Mark
http://thread.gmane.org/gmane.comp.ide. ... .user/1599
I don't believe you can do this (easily) with format or numberFormat.
Best,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
-
- Posts: 13
- Joined: Fri Oct 05, 2007 12:45 am
Hi Ron,
Your script would look like this:
Best,
Mark
Your script would look like this:
Code: Select all
on mouseUp
put fld "Some Number" into myNumberVar
if myNumberVar <> "" then put "$"&dispnum(true,myNumberVar) into fld "Another Number"
end mouseUp
Mark
Last edited by Mark on Wed Jan 28, 2009 12:57 pm, edited 1 time in total.
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
-
- Posts: 13
- Joined: Fri Oct 05, 2007 12:45 am