Re: Thousands Separators

2015-07-30 Thread Graham Samuel
Very interesting stuff indeed, IMHO. Some time ago I implemented what amounts to a simplified spreadsheet as part of an iOS app. There were cells containing numbers, arithmetic operations on the cells, and displays of the results. It very quickly emerged that every cell had to be stored in two f

Re: Thousands Separators

2015-07-29 Thread Kay C Lan
On Tue, Jul 28, 2015 at 9:59 PM, Richard Gaskin wrote: > But stepping back to look at the big picture, I find myself wondering: > > Why is that even necessary? > > Why isn't that just a field property, e.g. "the displayFormat"? > > But stepping back further, why would you want it only restricted

Re: Thousands Separators

2015-07-28 Thread Bob Sneidar
+1 I commented awhaaay back in Revolution 2 times how neat it would be to have a numberFormat property for fields, so that the stored value was one thing (a number) and the display value was another. Otherwise reading data into and out of databases requires a de-format and re-format function fo

Re: Thousands Separators

2015-07-28 Thread dunbarx
You might post this to the "Feature Requests" pane in the forums. Craig Newman -Original Message- From: Michael Doub To: How to use LiveCode Sent: Tue, Jul 28, 2015 12:16 pm Subject: Re: Thousands Separators Richard, I think Hugh had the same thoughts when he c

Re: Thousands Separators

2015-07-28 Thread Michael Doub
Richard, I think Hugh had the same thoughts when he created the fieldformatter (http://www.flexiblelearning.com/fieldformatter/). Were you thinking of something different? -= Mike On 7/28/15 9:59 AM, Richard Gaskin wrote: It's of course very useful that we have a community able and willing

Re: Thousands Separators

2015-07-28 Thread Erik Beugelaar
Try Javascript... And go for Wakanda... Sorry for my sarcasm... Sent from my Cubot X6. Richard Gaskin wrote: >It's of course very useful that we have a community able and willing to >share handler for things like number formatting. > >But stepping back to look at the big picture, I find mys

Re: Thousands Separators

2015-07-28 Thread Richard Gaskin
It's of course very useful that we have a community able and willing to share handler for things like number formatting. But stepping back to look at the big picture, I find myself wondering: Why is that even necessary? Why isn't that just a field property, e.g. "the displayFormat"? The core

Re: Thousands Separators

2015-07-27 Thread Peter W A Wood
terLibrary is impressive, I should have looked at it before. The function didn’t seem to have the exact format that I needed but it was a good stimulus to write one that meets my needs. I wanted to format the numbers in what I call accounting format - thousands separators with negative numbers

Re: Thousands Separators

2015-07-27 Thread Paul Dupuis
On 7/27/2015 7:12 AM, Peter W A Wood wrote: > I would like to display numbers with a thousand separator. I searched the > dictionary and the user guide but couldn’t find any mention of inserting a > thousand separator into a number. Is it a case of do it yourself? > > Look at the 'format' functi

Re: Thousands Separators

2015-07-27 Thread Peter W A Wood
Thanks Mike. > On 27 Jul 2015, at 19:14, Michael Doub wrote: > > Peter, there is a function in the MasterLibrary that does this for you. Look > in the Text section. > > https://www.dropbox.com/s/3wpwn3hfbmpl7sk/MasterLibrary.livecode?dl=0 > > Regards, > Mike > > > On 7/27/15 7:12 AM, Pet

Re: Thousands Separators

2015-07-27 Thread Michael Doub
Peter, there is a function in the MasterLibrary that does this for you. Look in the Text section. https://www.dropbox.com/s/3wpwn3hfbmpl7sk/MasterLibrary.livecode?dl=0 Regards, Mike On 7/27/15 7:12 AM, Peter W A Wood wrote: I would like to display numbers with a thousand separator. I sea

Thousands Separators

2015-07-27 Thread Peter W A Wood
I would like to display numbers with a thousand separator. I searched the dictionary and the user guide but couldn’t find any mention of inserting a thousand separator into a number. Is it a case of do it yourself? Regards Peter ___ use-livecode maili