Did you initialize lErr to .F. before your SCAN loop? Fred
On Sat, Jun 13, 2009 at 3:48 PM, Eurico Chagas Filho < [email protected]> wrote: > Hi > > I am trying to built a structure like the following... > > SCAN > ..... > TRY > .... > CATCH TO oErr WHEN oErr.ErrorNo = 1705 > .... > lErr = .T. > CATCH TO oErr > .... > lErr = .T. > ENDTRY > IF lErr > LOOP && or EXIT it doesn't matter > ENDIF > ..... > ENDSCAN > > I get error 2059, "Unhandled Structured Exception", so is > there another way of doing this ? > > TIA > > [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[email protected] ** 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.

