APPEND FROM is xBase. As others mentioned, it wants the physical file and a cursor is a temp file buried in your temp directory using sys(2015) to create the file name. The SQL SELECT doesn't care about the location of the physical file since you already have it open.
--
rk
-----Original Message----- From: ProfoxTech profoxtech-bounces@leafe.com On Behalf Of Gene Wirchenko Sent: Wednesday, April 11, 2018 8:32 PM To: profoxtech@leafe.com Subject: RE: Appending from a Cursor
At 11:10 2018-04-11, "John Weller" john@johnweller.co.uk wrote:
You could try
APPEND FROM DBF(alimport)
[whack object="hand" target="forehead"] I have used it in the past, just not very often. When I checked my code, I searched for "append from (" instead of just "append from". Sometimes, 90% of the battle is knowing what to look for.
I ended up using <vfp> insert into (this.thiscode+"_cwkt") select * from (alimport) </vfp>
I am puzzled why (alimport) works for the SQL but not the append from, but whatever.
[snip]
Sincerely,
Gene Wirchenko