Ridelight Posted April 29, 2008 at 10:30 AM Report Share #182252 Posted April 29, 2008 at 10:30 AM Boas, gostava de saber como detectar o lenght de uma text box, pois só aceita o max.lenght :nono1:. Tipo if text1.lenght=126 then text2.visible=true end if como faço isto ? Regras do FÓRUM Link to comment Share on other sites More sharing options...
jpaulino Posted April 29, 2008 at 01:47 PM Report Share #182286 Posted April 29, 2008 at 01:47 PM Se for em vb6 podes utilizar o len(text1.text) text1.lenght só funciona em vb.net Link to comment Share on other sites More sharing options...
asworm Posted April 30, 2008 at 03:48 PM Report Share #182650 Posted April 30, 2008 at 03:48 PM exacto, mas se axares interessante existe uma propriedade na textbox que te permite limitar o numero de caracteres... "maxlenght" cumps Got it? Link to comment Share on other sites More sharing options...
NuGuN Posted May 3, 2008 at 08:44 PM Report Share #183246 Posted May 3, 2008 at 08:44 PM Boas. As textbox não tem nenhuma propriedade que o faça. Tens de utilizar uma função. if len(text1.text)=126 then text2.visible=true end if Cumps Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now