What is the error you get? Does the second variant also raise an error? One problem definitely is that the values in DMInvIndex are instances of
tDMInvIndex while in your definition of tK you define the field DMI to be of type int. This field should have type
tDMInvIndex, otherwise the types do not match.
------------------------------
Daniel Junglas
------------------------------