Absolutely, Gene. As always with the Fox there are multiple ways to do the same thing. :-)
You can go through the rows in a table or cursor using DO WHILE NOT EOF() and SKIP but my preference is to use SCAN...ENDSCAN. ICASE is way easier to read and maintain then a bunch of nested IIFs. ASSERT uses one line of code, lets you make a determination at the time it fires if you want to debug or not and has no impact in the runtime environment. The "new" DEBUGOUT command allows you to write whatever data you wish to the output window in the debugger so simply by having the debugger open you can also be writing a log. What I'm suggesting is not that you go back and rewrite a whole bunch of working code. But that when you are writing new code or refactoring something, that's a good time to evaluate the code you write, and perhaps take advantage of some of the later commands and syntax which has the potential to make your code more efficient, more maintainable and easier to read. -- rk -----Original Message----- From: ProfoxTech [mailto:profoxtech-boun...@leafe.com] On Behalf Of Gene Wirchenko Sent: Wednesday, October 08, 2014 8:09 PM To: profoxt...@leafe.com Subject: RE: Extreme Case of PRG File Corruption? At 08:36 2014-10-08, Richard Kaye <rk...@invaluable.com> wrote: >Another memory lapse on my part... ;-) I still think ASSERTS are way >better than SET STEP as you can define logical conditions that give you >the opportunity to invoke the debugger on demand. This works, too: if <logical conditional> set step on endif I often output debugging information in the if block before the set step on. [snip] Sincerely, Gene Wirchenko _______________________________________________ Post Messages to: ProFox@leafe.com 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/DF1EEF11E586A64FB54A97F22A8BD04423CC3CC50E@ACKBWDDQH1.artfact.local ** 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.