Yes I know. I was remarking that you can put virtually anything in the 
numberFormat and it will pad with zero's. It was an issue with me because I 
have a validation called formatNumber, where when setting it up the user can 
enter a format string. I then wanted to test if it was a valid one. I suspected 
I would get some kind of error either when I set the numberFormat, or when I 
did the math on something. Instead of an error I got the result padded with 
zero's. 

I resolved it at any rate by deleting all characters in "#.0+-" and then 
checking to see if the format string was empty. If it was not then there was an 
error in the formatString. 

Bob


On Feb 14, 2012, at 1:31 PM, stephen barncard wrote:

> try
> 
> set the numberFormat to "#"
> 
> On 14 February 2012 12:39, Bob Sneidar <[email protected]> wrote:
> 
>> set the numberFormat to "blah"; put 1 + 1
> 
> 
> 
> 
> -- 
> 
> 
> 
> Stephen Barncard
> San Francisco Ca. USA
> 
> more about sqb  <http://www.google.com/profiles/sbarncar>
> _______________________________________________
> use-livecode mailing list
> [email protected]
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to