If construction bug in 5.5.2 ?

Bob Sneidar bobs at twft.com
Fri Sep 28 12:49:54 EDT 2012


You have created an interesting infinite loop here. The command "select the text of me" will enter the field generating an openField message. Why this does not, as you say, happen with 5.5.1, I do not know, but it seems to me that it is working exactly as expected with 5.5.2. If I were a doctor and you were the patient, I would reply, "Well don't do that!" 

If this is the only way to accomplish what you are after then lock messages right after your answer dialog and unlock them at the end of the conditional testing. 

Bob


On Sep 28, 2012, at 6:31 AM, Robert Presender wrote:

> Create a text entry field with content 00.00
> Field script is:
> 
> on openField
> answer information "Want to enter a new value?" with "No" or "Yes" titled "New Amount"
>  if it = "No" then select empty
>  if it = "Yes" then select text of me
> end openField
> 
> Using 5.5.2, No works fine but Yes keeps repeating "Want to enter a new value?
> Using 5.5.1, No and Yes work as expected.
> 
> If a bug, would someone file a bug report. I'm just a hobbyist.
> 
> Bob
> (702) 458-8519
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list