FOR m.x = 1 TO ALEN(THISFORM.oMail.aSortList,1) thekey = THISFORM.oMail.aSortList(m.x,10) && "array dimensions invalid"
Is this m.x declared local to the procedure, or is it possibly shared with other m.x's in different scopes?
It's declared local in this procedure, and all of the other m.x loop counters in the affected objects are also local.
Thanks,
Ken