On Mon, 30 Apr 2007 22:05:03 -0500, Chipp Walters wrote:

> Thanks Sarah,
> 
> I put at the beginning of the script: "put the target into tTarget"
> then replaced "the target" with "tTarget" and it still acted the exact
> same way. The last statement "select text of the target" is replaced
> by "select text of tTarget" and it still selects text in the wrong
> field.
> 
> I agree, perhaps not a target bug, but some sort of weird object layer
> bug. Not sure how I can use 'closeField' to validate field contents if
> I can't reliably select the text of the field I'm checking...any
> ideas?

I posted this on the Improve list, but for the benefits of the Use 
list, here's what I do:

on closeField
  if the text of me is not a number then
    send "NeedNumber" to me in 20 milliseconds
  end if
end closeField

on NeedNumber
  answer "You must enter a number."
  select the text of me
end NeedNumber

HTH,

Ken Ray
Sons of Thunder Software, Inc.
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to