On Thu, 03 Jan 2013 13:04:13 +0100, Bernhard Sander <fu...@kein.spam>
wrote:
>> I just got an odd error message that had me puzzled for a few
>> minutes:
>> Expression is not valid outside of WITH/ENDWITH.
>> The error line was a return statement:
>> return .t
>> The error message is technically accurate but is a bit confusing. The
>> error is that I forgot the second period of ".t.".
>
>Hm, RETURN <value> is the common way to return the value of a function call.
In my case, the value to return was .t.
>In your line, .t is correct syntax, but only allowed, if it is contained in a
>WITH/ENDWITH structure. Then .t is a property of the WITH-object. So the error
>message is very correct.
Sure, but quite misleading. The error message made no mention of
the real error.
Sincerely,
Gene Wirchenko