Subject RE: [IBO] Defining field lengths in IBO4
Author Riho-Rene Ellermaa
> > I think that this property should be public,
> > i.e. Edit->SetLength(35);
>
> Well: Edit->MaxLength := 35;
>
> But you must remember that IBO will continue to reset the
> maxlength with every statechange (this is required to support
> the dynamic columns and to support search mode). So you will
> have to find an appropriate place in which input your
> maxlength reset - probably in the datachange event.
>
> If you want to try this with TIB_Edit, simply edit IBC_Edit.INT and
> add:
> property MaxLength;
> to the public section. If it does what you want then pass on
> the change to Jason to see what he thinks.
>
>

Added MaxLength to INT file, recompiled IBO and set the MyField->MaxLength=3
in StateChanged event, but nothing visible happened. I still could enter
more characters.


Riho-Rene Ellermaa
senior programmer
Hansabank