RE: A Use for OKL

Author: Richard Kaye

Posted: 2014-03-25 at 15:17:22

You're right, Gene. Nothing can cover all situations. But any logical condition will do. Two generic strategies I've used when I don't necessarily have some well-defined condition are:

ASSERT .F. MESSAGE [Debug now?]

And

ASSERT NOT FILE([debugnow.txt]) MESSAGE [debug now?]

The first is pretty much a sledge hammer so every time I use that one I get prompted about going into debug mode. The latter allows me to control the debug prompt by using the presence or absence of an external file as opposed to some application condition.

--

rk

-----Original Message-----

From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Gene Wirchenko

Sent: Tuesday, March 25, 2014 3:01 PM

To: profoxtech@leafe.com

Subject: RE: A Use for OKL

At 04:33 2014-03-24, Richard Kaye <rkaye@invaluable.com> wrote:

>You might want to look at using ASSERTS. Very useful for triggering the

>debug process in a controlled way.

If you can define an expression that covers the case. Sometimes, the condition is higher-level than VFP.

[snip]

Sincerely,

Gene Wirchenko

[excessive quoting removed by server]

_______________________________________________

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/DF1EEF11E586A64FB54A97F22A8BD04422A727A6FD@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.

©2014 Richard Kaye