Sounds perfectly legit as an error to me.  Property references inside the
WITH/ENDWITH begin with a ".".  VFP couldn't tell the difference between
".f" and a ".someproperty" reference so there would be no error at compile
time.  Not every scenario can be accounted for at compile time the way it
works.  Maybe they COULD HAVE errored it at compile time, since there was
no active WITH/ENDWITH when the ".f" was encountered.

Fred

On Wed, May 10, 2017 at 11:32 AM, Gene Wirchenko <[email protected]> wrote:

> Hello:
>
>      I am making some table modifications to my app.  I completed the
> support part for one table then wanted to see the DE form for how I was
> going to add the columns.  I got an interesting error when the support
> object for that table was being instantiated.  This error was reported on
> the statement with the createobject() call:
>           Expression is not valid outside of WITH/ENDWITH.
> The error number was 0.
>
>      The real cause of the error had to be in the class about to be
> instantiated.  That was the only place I had changed.  Well, I did find it
> there.  I had missed a period and had defined a property incorrectly.  The
> erroneous line was
>           lrtepup=.f
> and should have been
>           lrtepup=.f.
>
>      Note that VFP had not complained about the line during compilation.
>
> Sincerely,
>
> Gene Wirchenko
>
>
[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
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/cajcbksoqv_bydjj85di5zbw76tkmp8vo-hrvtpmja-p4duy...@mail.gmail.com
** 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.

Reply via email to