speeding a handler?

Ton Cardona toncardona at mac.com
Tue Dec 1 13:41:01 EST 2009


Thanks a lot, Phil. Your handler is as fast as lightning.

I've had to add a line of code to replace quotes since they still showed in the fld:

repeat for each line tLine in tText
     if """ is in tLine -- this line contains a quote
     then -- make the text red
        put "<font color=#FF0000>" after char 3 of tLine -- after "<p>"
        put "</font>" before char -4 of tLine -- before "</p>"
     end if
     replace """ with empty in tLine  --line added by me
     put tLine & cr after tNewText
  end repeat

I am really very grateful.

Best regards,

Ton



More information about the Use-livecode mailing list