Running VFP 9 SP 2 on Win 11 and I think I have discovered a bug.
When the current work area/local DBF is empty (no records) and you try to update data in another work area that has records the update does not happen.
Simple program example below, let's say we have two tables order_temp and orders, order_temp has no records (empty) and orders has 10 records and the current record is #1.
use orders
select 0
use order_temp
replace orders.order_date with date() <---- this will fail, no error, it executes the command however the order_date field in the orders table will be the old value and not update.
If however I do this
use orders
select 0
use order_temp
append blank
replace orders.order_date with date() <---- the command works perfectly. I'm not sure why this only happens when the current work area is empty.
Any ideas? Is there a patch for this?
When the current work area/local DBF is empty (no records) and you try to update data in another work area that has records the update does not happen.
Simple program example below, let's say we have two tables order_temp and orders, order_temp has no records (empty) and orders has 10 records and the current record is #1.
use orders
select 0
use order_temp
replace orders.order_date with date() <---- this will fail, no error, it executes the command however the order_date field in the orders table will be the old value and not update.
If however I do this
use orders
select 0
use order_temp
append blank
replace orders.order_date with date() <---- the command works perfectly. I'm not sure why this only happens when the current work area is empty.
Any ideas? Is there a patch for this?