CLEAR CREATE CURSOR aa (x i,order I) INSERT INTO AA VALUES (7,1) INSERT INTO AA VALUES (5,2) INDEX ON X TAG XX * look the screen output REPLACE ALL X WITH GETV(X) * then this is not possible REPLACE ALL order WITH _TALLY+1 BROWSE * workaround LOCATE REPLACE REST order WITH _TALLY+1 BROWSE PROCEDURE GETV(V) ? M.V RETURN M.V