Subject Re: [IBO] Defining field lengths in IBO4
Author Geoff Worboys
> 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.

Try it in the DataChange event (since you will presumably want to
change the maxlength according to the current row properties anyway).

The problem with using StateChange is that it is in StateChange that
IBO does its automatic maxlength reset, so whether or not your setting
"takes" depends on the order of creation of the various datalinks.
Whereas DataChange is called AFTER statechange and so it should give
the desired result (I think :-)

Geoff Worboys
Telesis Computing