REPLACE fieldName1 WITH exp1, fieldName2 WITH exp2is executed with a left to right evaluation:
eval exp1 put this into fieldName1 eval exp2 && if this use fieldName1, it use the new replaced value put this into fieldName2The UPDATE SQL is a set based command
UPDATE tableName SET fieldName1 = exp1, fieldName2 = exp2and i aspected that the order of the setting list not influence the result.
eval exp1 eval exp2 && if this use fieldName1, it use the old value put exp1Value into fieldName1 put exp2Value into fieldName2A simple example:
CLEAR CREATE CURSOR myCursor (f1 I , f2 I ) INSERT INTO myCursor VALUES (1,-1) UPDATE myCursor SET f1=f2 , f1=f1 ? f1,f2, "aspected -1,1"without
or - add a dummy field or, only in VFP9 - do a join with a copy of the same table via a primary keyAnother little problem is this: