On 03/10/2019 14:15, Ted Roche wrote:
Well a minor difference, I think: APPEND BLANK / REPLACE changes the RECNO() to the record being added to, where INSERT INTO may not. If other code tries a REPLACE without locating the proper record, you could end up changing the wrong one following an INSERT INTO. A good reason to be cautious when mixing XBase with SQL is the first thinks there is a "current record" where SQL does not.
Just looked at the help file and it says "After executing the *INSERT* command, Visual FoxPro positions the record pointer on the new record."
I'm sure I have some code that may rely on this somewhere. Just wondering why you say INSERT INTO "may not"?
Peter
This communication is intended for the person or organisation to whom it is addressed. The contents are confidential and may be protected in law. Unauthorised use, copying or disclosure of any of it may be unlawful. If you have received this message in error, please notify us immediately by telephone or email.
www.whisperingsmith.com
Whispering Smith Ltd Head Office:61 Great Ducie Street, Manchester M3 1RR. Tel:0161 831 3700 Fax:0161 831 3715
London Office: 101 St. Martin's Lane,London, WC2N 4AZ Tel:0207 299 7960