Todd, thanks for your help. That was the problem. It had totally escaped me to look at the setting on the TStringField's.
This is part of the issues I face changing directly from an Oracle environment into supporting Delphi and skipping Delphi 101 ;-) -- Phil Hayward Quoting Todd Martin <[EMAIL PROTECTED]>: > Are you using a persistent TStringField in your form/datamodule? If > so, is the > size property set? > > Todd. > > On Friday 07 Apr 2006 19:23, Phil Hayward wrote: >> 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 > _______________________________________________ > Delphi mailing list > [email protected] > http://ns3.123.co.nz/mailman/listinfo/delphi > ----- End forwarded message ----- _______________________________________________ Delphi mailing list [email protected] http://ns3.123.co.nz/mailman/listinfo/delphi
