>2. Select all the relations for the defendants in the case into a cursor, cTempRelations, then create an INDEX ON ALLTRIM( STR( DefID ) ) + ALLTRIM( STR( VictimsID ) ) Tag DefID [is there a better way to create a tag on 2 integer fields?]
Watch it here, if you want to concatenate to integers to get a unique tag, you can't trim them. IOW
"123" + "321" = "12" + "3321"
Leaving out the ALLTRIM() will ensure that both integers are represented with the same precision.
Erik Moore
Clientelligence