Groups | Search | Server Info | Login | Register


Groups > comp.databases.xbase.fox > #36

Re: Odd Error Message

From Bernhard Sander <fuchs@kein.spam>
Newsgroups comp.databases.xbase.fox, microsoft.public.fox.programmer.exchange
Subject Re: Odd Error Message
Date 2013-01-03 13:04 +0100
Organization 1&1 Internet AG
Message-ID <kc3s1h$ree$1@online.de> (permalink)
References <7klpd855hqsne7qhf4svln3uukjn784hqt@4ax.com>

Cross-posted to 2 groups.

Show all headers | View raw


Hi Gene,

>       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 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.

Regards
Bernhard Sander

Back to comp.databases.xbase.fox | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Odd Error Message Gene Wirchenko <genew@telus.net> - 2012-12-27 15:18 -0800
  Re: Odd Error Message Dan Freeman <dan@dfapam.com> - 2012-12-28 07:50 -0800
  Re: Odd Error Message Bernhard Sander <fuchs@kein.spam> - 2013-01-03 13:04 +0100
    Re: Odd Error Message Gene Wirchenko <genew@telus.net> - 2013-01-03 09:52 -0800
      Re: Odd Error Message Bernhard Sander <fuchs@kein.spam> - 2013-01-04 12:20 +0100
        Re: Odd Error Message Dan Freeman <dan@dfapam.com> - 2013-01-04 09:50 -0800

csiph-web