Subject RE: [IBO] Limit size of a field in Delphi
Author Franky Brandt
Thanks Harald,

but it's for inplace editing in a TIB_Grid so i'll have to go for the
EditMask solution i think.

I agree it would be nice to have a Length property on the fields in a
TIB_Query.

Franky

-----Oorspronkelijk bericht-----
Van: nibler@... [mailto:nibler@...]
Verzonden: vrijdag 5 december 2003 15:33
Aan: IBObjects@yahoogroups.com
Onderwerp: Re: [IBO] Limit size of a field in Delphi


Franky,

> [.. ]With a IBOtable i can change the .FieldByName(afield).Size :=
20; and
> .FieldByName(afield).DisplayWidth := 20; from code but i can't set the
> size of a field in TIb_Query
>
> Any suggestions?
>
> Franky
>

TIB_Edit has a property called MaxLength.
That will do it.

Harald



Yahoo! Groups Sponsor

<http://rd.yahoo.com/SIG=12c26qhoq/M=259395.3614674.4902533.1261774/D=eg
roupweb/S=1705007183:HM/EXP=1070721343/A=1524963/R=0/*http://hits.411web
.com/cgi-bin/autoredir?camp=556&lineid=3614674&prop=egroupweb&pos=HM>

<http://us.adserver.yahoo.com/l?M=259395.3614674.4902533.1261774/D=egrou
pmail/S=:HM/A=1524963/rand=377482222>

________________________________________________________________________
___
IB Objects - direct, complete, custom connectivity to Firebird or
InterBase
without the need for BDE, ODBC or any other layer.
________________________________________________________________________
___
http://www.ibobjects.com <http://www.ibobjects.com> - your IBO
community resource for Tech Info papers,
keyword-searchable FAQ, community code contributions and more !


Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
<http://docs.yahoo.com/info/terms/> .