TARGET bug..please check

Ken Ray kray at sonsothunder.com
Mon Apr 30 23:54:57 EDT 2007


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: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/



More information about the use-livecode mailing list