Subject SetKey/GotoKey error
Author nevillerichards
I am fairly new to IBO, although have long experience with all versions of Delphi.

I have had errors on a number of occasions on a GotoKey method on a TIBOTable (TDataset equivalent).

The exception produced is along the lines: "variant array subscript out of bounds".

I have traced the error to my forgetting to set the property: IndexFields.

I would assert that if TIBOTable needs IndexFields to resolve a GotoKey, then it really ought to check that and raise a helpful exception at that point, rather than allowing the machinery to blow up some time later with an error which might have been interesting to the component developer, but means little to the component user.

Neville Richards


[Non-text portions of this message have been removed]