PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: John Messingham on February 06, 2005, 07:37:44 AM

Title: Textbox MaxLength
Post by: John Messingham on February 06, 2005, 07:37:44 AM
Hi,

Has anyone come accross a problem with textbox's maxlength. I am working on an app using PB/FF and if I set a textbox's maxlength, it will not allow me to enter any data beyound the value already in the box.

I am developing on XP.
Title: Textbox MaxLength
Post by: TechSupport on February 06, 2005, 04:15:21 PM
I don't see what the problem is? If you set maxlength to 5, then only 5 characters will be able to be entered. Do you have more data in the field then the maxlength allows?
Title: Textbox MaxLength
Post by: John Messingham on February 10, 2005, 08:06:28 AM
I am not sure what was going on but it seems to be ok now.
Title: Textbox MaxLength
Post by: Roger Garstang on February 10, 2005, 11:32:18 AM
From your first post it appears you have the same thing that happens to me in ListView controls.  I allow editing the label and grab the handle to the edit control to set the maxlength to 10...the length of field names in DBF.  Now, in some cases the existing label is > 10 which it allows, but since I set the length to 10 it will not allow further input of characters until I delete it down to < 10.

This is the correct behavior.
Title: Textbox MaxLength
Post by: John Messingham on February 11, 2005, 09:46:23 AM
It all makes sense now, I am using UDT's. so the text being placed in the text box will contain space's and therefore be the same length.