2 more questions about operations on text in fields

jbv jbv.silences at Club-Internet.fr
Mon Aug 2 14:28:09 EDT 2004


Here's the solution I'm using.
It's rather simple, it catches any character with accent,
as well as any delete action by end users.
the variable theString always contains the latest content
of the field.
The following handlers should be put in the field's script :


on openfield
  send "check_fld" to me in 0.1 seconds
end openfield

on check_fld
  global theString
  put fld "Myfld" into theString
  if (the long id of me) = (the focusedobject) then
    send "check_fld" to me in 0.1 seconds
  end if
end check_fld

Hope that helps

JB



More information about the Use-livecode mailing list