It isn't really hung, you can command-period to abort the infinite loop.
But still. Hm.
It locks up for me too, and it didn't used to. Not only that, but if I
abort the script I still get a final dialog, and if I hit Cancel in that
one, I get the same odd results you do -- part of the script goes into
the ask field, which then displays "ask warning". How weird.
The reason you aren't getting a recursion error is because it isn't
really recursion (the handler doesn't call itself.) It's just a loop.
Only the ask dialog should be modal and stop the loop until you dismiss
it, then evaluate the entry and loop again or exit. That's not
happening. It looks like the script keeps running even with the dialog
up, the loop backs up with multiple calls to the ask dialog, and
everything hangs.
Something's wrong. I think it's the dialog.
On 1/10/13 11:08 PM, Kay C Lan wrote:
Jacque,
Actuallly this doesn't work for me either. LC locks up, my CPUs go to
100% and I don't even get a recursion message or anything. I have to
Force Quit LC.
Any further suggestions?
On Fri, Jan 11, 2013 at 11:43 AM, J. Landman Gay
<[email protected]> wrote:
on hCheckEntry pData
repeat until pData is an integer
ask warning "Please enter only whole numbers!" with pData \
titled "Enter A Number"
if the result = "cancel" then exit to top
put it into pData
end repeat
put pData into me
end hCheckEntry
_______________________________________________
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
--
Jacqueline Landman Gay | [email protected]
HyperActive Software | http://www.hyperactivesw.com
_______________________________________________
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