|
-
Jan 2nd, 2004, 06:53 PM
#1
Thread Starter
Lively Member
Limiting the amount of text in textbox
Hello,
Quick question is there any property I can alter to limit the amount of text that can be entered in by the user?
This is for Dates to avoid the "overflow" runtime error.
Chris
-
Jan 2nd, 2004, 07:03 PM
#2
You can either use a date mask in a MaskedEdit control or set the MaxLength property of a textbox to whatever you want.
-
Jan 2nd, 2004, 07:39 PM
#3
Supreme User
Originally posted by MartinLiss
You can either use a date mask in a MaskedEdit control or set the MaxLength property of a textbox to whatever you want.
Is there no limit to setting your own MaxLength? I.e can you have more text than a RTF or is there a memory limit like 32Kb or something?
-
Jan 2nd, 2004, 07:44 PM
#4
I think the limit of a textbox is 32K but the Trancedified is asking about a date.
-
Jan 5th, 2004, 05:58 PM
#5
Thread Starter
Lively Member
Great!
thx for the posts it worked, setting the maxlenth to 10
-
Jan 6th, 2004, 02:48 AM
#6
-= B u g S l a y e r =-
limit is 64 k for a textbox... but does it tell you that when loading files bigger than 64 K ?? ohhh....no.... just chops it off at the end and pretends nothing happened
-
Jan 6th, 2004, 04:18 AM
#7
Hyperactive Member
I remember loading big text files (definitely more than 64k)
when I used to be in college and a newbie to vb(vb5).
It used to load without giving any error.
-
Jan 6th, 2004, 04:26 AM
#8
-= B u g S l a y e r =-
yes, it loads with no errors, but it chops off whatever is after the first 64 k
sick really... should have given some kind of error...
-
Jan 6th, 2004, 05:56 AM
#9
You may be better off using a date picker control. It does it all for you with a nice diary screen if you wanted it.
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
|