- - * - WhiteUnicorn - * - -




* #WhiteUnicorn/ StartPage/ Documentation/DelphiFAQ >


Frequently Asked Questions

MaxLength property of a DBEdit is not automatically set

Question:

In Delphi 1.0 and 2.0, the TDBEdit control would automatically set the max field length (MaxLegth) and wouldn't allow you to enter more characters than the size specified for the TField Object. Why has Delphi 3 removed this "feature"?

Answer:

This new behavior allows you to set the value different than 
the field size. Delphi 1 and Delphi 2 overrided a change and 
put back the field size length. In Delphi 3 though, the maximum 
length is set, by default, to zero and will allow you to 
specify and enter any MaxLength for a TDBEdit, but it only 
writes as many characters to the database as the actual TField 
size property allows. 



* #WhiteUnicorn/ StartPage/ Documentation/DelphiFAQ >



- - * - Anastasija aka WhiteUnicorn - * - - LJLiveJournal
PFPhotoFile