Re: A Real Puzzle
Re: A Real Puzzle
- Subject: Re: A Real Puzzle
- From: Nelson Byrne <email@hidden>
- Date: Fri, 5 Mar 2004 10:28:43 -0800
That's the answer. Thanks!
Regards,
Nelson Byrne
On Mar 5, 2004, at 10:08 AM, Robert Poland wrote:
Sometimes AppleScript will create a real which can be converted to
text but which cannot be reconverted back into a real. How should one
handle such a case?
My particular need is that I put up a dialog box prepopulated with,
say, X. I ask the user to supply a new X. If the user just pushes
return than sometimes I trigger the error that this text can't be
converted to a real. Too many decimals, is my guess. But how to limit
the # of digits in a real to avoid this? I can't just drop off the
last few characters because they may well contain the exponent.
Regards,
Nelson Byrne
How about a simple work around? Assign x to another variable and then
use the new variable if there is no entry.
--
Bob Poland - Englewood, CO
http://www.ibrb.org/
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.