[DUG] Issue with TDBEdit component

Phil Hayward phil at compdata.co.nz
Fri Apr 7 19:23:33 NZST 2006


I am having problems getting a TDBEdit field to
recognise a new table column length.

I have an application I have been asked to make
modifications to.
It has a TDBEdit component on the form. It has a data
source set and happily reads and writes back to an
Interbase table.
The table column is a varchar(25).
The modification required is to allow text of up to 50
characters be entered into the table.
I have altered the table column to varchar(50) I have
confirmed that 50 characters can be entered into the
column.
What do I now have to do to make the TDBEdit component
now recognise this column as a varchar(50).
I set the MaxLength to 50. It allows the entry of 50
characters but then immediately truncates the entered
text to 25 characters as soon as the TDBEdit component
loses focus on the form. On saving the data it posts
25 characters to the table.
It would seem that I have missed a very simple setting
on the component. Can anyone assist.

Regards
Phil
-- 
Phil Hayward






More information about the Delphi mailing list