IIRC APPEND FROM needs to be able to find a physical file in disk. So you want 
to use DBF() when the source workarea is a cursor (i.e. created via SELECT or 
CREATE CURSOR) since the physical file name cannot be known simply by referring 
to the alias. I'm not sure why you would ever use the second option (table name 
in quotes).

rk

-----Original Message-----
From: [email protected] [mailto:[email protected]] On 
Behalf Of MB Software Solutions General Account
Sent: Wednesday, October 21, 2009 12:13 PM
To: [email protected]
Subject: VFP9SP1 APPEND FROM syntax -- when to use DBF(..)?

When is it appropriate to use APPEND FROM DBF("MyCursor") versus APPEND
FROM "MyCursor" ???

I'm changing a ton of code to use CURSORs instead of local DBFs now and
several lines have APPEND FROM DBF("MyLocalDBFName") and I'm wondering if
I should change these too?

This is one of those things that I often mix up in understanding.

tia!
--Mike



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/df1eef11e586a64fb54a97f22a8bd044065c9d2...@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.

Reply via email to