Re: Money Script

2011-08-10 Thread Bob Sneidar
Hey Charles that actually works pretty well. I did notice that a negative number would format something like $-5.21. Is that normal? Looks odd to me. Bob On Aug 9, 2011, at 12:08 PM, Charles Szasz wrote: I found the following to work just as well for fields without using functions: on

Re: Money Script

2011-08-10 Thread Bob Sneidar
Mark, it must have been you in an alternate timeleine. I have socks I never bought in my drawer. That pretty much settles everything. Bob On Aug 9, 2011, at 10:34 PM, Mark Wieder wrote: Hugh- Monday, August 8, 2011, 11:02:14 PM, you wrote: Mark Wieder's script, adjusted...

Re: Money Script

2011-08-10 Thread Peter M. Brigham, MD
On Aug 10, 2011, at 10:52 AM, Bob Sneidar wrote: Mark, it must have been you in an alternate timeleine. I have socks I never bought in my drawer. That pretty much settles everything. OK, now we've traveled back to a previous discussion. Next someone talks about driers being time machines,

Re: Money Script

2011-08-10 Thread Nonsanity
cheese ~ Chris Innanen ~ Nonsanity On Wed, Aug 10, 2011 at 12:40 PM, Peter M. Brigham, MD pmb...@gmail.comwrote: On Aug 10, 2011, at 10:52 AM, Bob Sneidar wrote: Mark, it must have been you in an alternate timeleine. I have socks I never bought in my drawer.

Re: Money Script

2011-08-10 Thread Bob Sneidar
I really love you guys. :-) Bob On Aug 10, 2011, at 10:03 AM, Nonsanity wrote: cheese ~ Chris Innanen ~ Nonsanity On Wed, Aug 10, 2011 at 12:40 PM, Peter M. Brigham, MD pmb...@gmail.comwrote: On Aug 10, 2011, at 10:52 AM, Bob Sneidar wrote: Mark,

Money Script

2011-08-10 Thread Charles Szasz
Bob, I am using that script along with the following script, which is placed first. The script below prevents a negative number being entered. My app calculates mileage and hence, I will not have a negative number. on keyDown theKey if theKey is in 1234567890 then pass keydown end

Re: Money Script

2011-08-09 Thread Bob Sneidar
Are you guys reading my mind?? Are you hacking into my computer at night to see what functions I need you to write and then writing them the next day??? ;-) Thanks, I am on the verge of needing exactly this! Bob On Aug 8, 2011, at 11:02 PM, FlexibleLearning wrote: This also handles

Money script

2011-08-09 Thread Charles Szasz
Nicolas, Thanks! I tried the scripts you suggested. They worked fine until the user enters a number with a decimal point. For my app, adults are more likely to enter a number with a decimal point rather than a penny amount. So, this script is not an improvement for me. Charles Szasz

Money Script

2011-08-09 Thread Charles Szasz
I found the following to work just as well for fields without using functions: on closeField if me empty then put me into tNum put format($%1.2f, tNum) into me end if end CloseField Charles Szasz csz...@mac.com ___

Re: Money Script

2011-08-09 Thread Mark Wieder
Hugh- Monday, August 8, 2011, 11:02:14 PM, you wrote: Mark Wieder's script, adjusted... ...interesting... I have no recollection of having done this... -- -Mark Wieder mwie...@ahsoftware.net ___ use-livecode mailing list

Re: Money Script

2011-08-08 Thread Nicolas Cueto
Charles, I had no idea what dollar sign script of mine you were referring to. So, I looked in the mailing-list archives. Wow! I'd completely forgotten about that. Your script is very cool Thanks but it's embarrassingly inelegant. Found something much cleaner, by Mark Wieder. It relies on the

Re: Money Script

2011-08-08 Thread Nicolas Cueto
Oops. 123456789 -- 123456789 -- $1,234,567.89 That example should've been: 123456789 -- 1234567.89 -- $1,234,567.89 -- Nicolas Cueto ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and