Do you constantly checkChar()?  Like in a loop, or an exitFrame?

Because if they never get a chance to make it SHORTER then it will always 
give you the alerts - possibly over and over.

Either you need to make it shorter, or give them a chance to.

You can trim it by doing:

member("body").text =char 1 to 150 of member("body").text



At 08:01 PM 2/5/02 +0100, Tony �str�m wrote:
>Hi List ,
>
>when I paste for example 200 characters into the member("Body") it went
>completey crazy. Alert,
>alert , alert , alert , alert , alert , alert , alert , alert , alert
>.............
>How can I prevent this and auto. delete the character(s) after the 150 ?
>
>I use the lingo belowe:
>
>on checkChar
>   if member("Body").text.length > 150 then
>     if gLang = "eng" then
>       alert "Max 150 characters. Should you need more then please state
>it in your e-mail."
>     else if gLang = "fra" then
>       alert "Max 150 caract�res. Si vous avez besoin de plus de place,
>contacter nous par E-mail."
>     end if
>   end if
>end
>
>TIA
>Tony
>
>[To remove yourself from this list, or to change to digest mode, go to 
>http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
>[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L 
>is for learning and helping with programming Lingo.  Thanks!]

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to