|
-
May 19th, 2003, 10:57 AM
#1
Thread Starter
Addicted Member
Count textboxes caption (RESOLVED)
how would i get how many characters (including spaces and other special characters) are in a textbox? what i want to do is, when the user types something its gets how many characters are added and take the total number away from 40 (becuase the maxlength is 40 and im making a counter for how many characters are left)
Last edited by lpeek; May 19th, 2003 at 11:38 AM.
Lpeek
-
May 19th, 2003, 11:02 AM
#2
Frenzied Member
Use Len function: MyCount = Len(Text1.Text)
-
May 19th, 2003, 11:07 AM
#3
Thread Starter
Addicted Member
Originally posted by McGenius
Use Len function: MyCount = Len(Text1.Text)
how would i use that? it keeps saying "expected ("
is this right:
VB Code:
Private Sub txtbugname_Change()
Use Len function: lblbnc.Caption = Len(txtbugname.Text)
End Sub
-
May 19th, 2003, 11:10 AM
#4
Junior Member
Use len function: is not part of the code.
Code:
lblbnc.Caption = Len(txtbugname.Text)
-
May 19th, 2003, 11:16 AM
#5
Frenzied Member
Originally posted by lpeek
how would i use that? it keeps saying "expected ("
is this right...
All I can tell you is that you need to learn to differ between ordinary text and and actual code snippet.
-
May 19th, 2003, 11:43 AM
#6
Thread Starter
Addicted Member
thanks
oops, i c now (did notice the ":" thought it was all one =P), thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|