On Thu, Mar 2, 2017 at 11:58 AM, Ken Dibble <[email protected]> wrote: > > FOR m.x = 1 TO ALEN(THISFORM.oMail.aSortList,1) > thekey = THISFORM.oMail.aSortList(m.x,10) && "array dimensions > invalid" >
Ken: Is this m.x declared local to the procedure, or is it possibly shared with other m.x's in different scopes? Try changing it to: LOCAL m.rowcounter for m.rowcounter... This will ensure if other code fires, such as timers or menu interruptions or on key labels that m.rowcounter is still local to this procedure. -- Ted Roche Ted Roche & Associates, LLC http://www.tedroche.com _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/CACW6n4thfr=X1weP8EBNwNXgH=7E05ANsar06Z=-cs0fnoj...@mail.gmail.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

