It is not sure that the variable is updated in the interactive change event. So you can try to write
thisform.text2.value=len(alltrim(This.value)) The second problem is : interactive change event is fired only when a caracter is typed. So you must initialize text2 in the init of the form (for example) -- Jean MAURICE Grenoble - France - Europe www.atoutfox.org www.aedtf.org _______________________________________________ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/497ed0b6.7080...@wanadoo.fr ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.