Staying on a field
Bill Vlahos
bvlahos at mac.com
Tue May 10 12:35:00 EDT 2011
OK. I've got it working. Thanks to Ken Ray for assisting me.
The problem was that the mouseUp message to go to a different card happened before the closeField (it actually triggered it). I also removed the exit closeField which now gives the answer box before it actually goes to the new card. It still goes to the new card but the selectMe handler will get it back to where it needs to go. I needed the "wait for messages" statement so that it could finish the openCard handlers in the new card to finish before going back to the Induction card.
on closeField
if vDate is a date then
else
answer error "Not a valid date. Retry?" with "No" or "Yes"
if it is "Yes" then send "selectMe" to me in 0 seconds
end if
pass closeField
end closeField
on selectMe
wait for messages
go to card "Induction"
select the text of me
end selectMe
Bill Vlahos
_________________
InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure.
On May 5, 2011, at 9:01 PM, Bill Vlahos wrote:
> Jim,
>
> I have a test stack that doesn't match what I see in my stack but this test stack doesn't work right either. Looks like it is going to take a bit to figure out. I'll send you one if I can figure it out.
>
> Thanks,
> Bill Vlahos
>
> On May 5, 2011, at 8:43 PM, Jim Ault wrote:
>
>> Since I don't know how you are trapping, executing, and locking your messages, I cannot begin to answer your question.
>> A sample stack from you would be the best bet, unless you are up for a cycle of many emails that dance around a possible solution.
>>
>> Looking forward to your sample stack.
>>
>> On May 5, 2011, at 8:23 PM, Bill Vlahos wrote:
>>
>>> Jim,
>>>
>>> How do I test for the "dialog" condition? I don't see anything in the dictionary for it.
>>> Funny thing is I always get the answer dialog after I go to the new card even though it should execute it first.
>>>
>>
>> Jim Ault
>> Las Vegas
>>
>>
>>
>> _______________________________________________
>> 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
>
>
> _______________________________________________
> 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