Textbox MaxLength

Started by John Messingham, February 06, 2005, 07:37:44 AM

Previous topic - Next topic

John Messingham

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.

TechSupport

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?

John Messingham

I am not sure what was going on but it seems to be ok now.

Roger Garstang

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.

John Messingham

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.