Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

2D All the way! / Text Input Issue

Author
Message
Bankzy10
15
Years of Service
User Offline
Joined: 29th Jan 2009
Location: Planet DarkBasic - Learning the tricks
Posted: 29th May 2009 23:19
I am having a little problem with a text entry issue. Can anyone help and tell me how to limit the number of characters the user can enter. I have experiemented with a few things but can't get it to work. Heres the code:



Thanks in advance, Bankzy10
Grog Grueslayer
Valued Member
18
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 30th May 2009 01:31
You make a variable to store the max number of characters you want and check the current length of the string with the LEN command to the max before you add the new character.



Bankzy10
15
Years of Service
User Offline
Joined: 29th Jan 2009
Location: Planet DarkBasic - Learning the tricks
Posted: 31st May 2009 18:12
Thanks mate, what I was doing was just using Max=20 instead of MaxLength=20 and sticking it further down.

Once again, thanks!

Login to post a reply

Server time is: 2024-04-24 22:40:12
Your offset time is: 2024-04-24 22:40:12