... and one more thing to add to what Richard said about APPEND FROM:
When APPEND FROM was created, in dBase/CPM times (1979), SQL syntax did not exist, so did not get implemented in any language, at least until 1986, far later than dBase.
El jue., 12 abr. 2018 4:16, Richard Kaye rkaye@invaluable.com escribió:
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 thepast, 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 theappend from, but whatever.
[snip]
Sincerely,
Gene Wirchenko
[excessive quoting removed by server]