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
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...
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,
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.
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,
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
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
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
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
___
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
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
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
12 matches
Mail list logo