I'm trying to create a little program to replace the value in the same field name in multiple tables at once using the following code but it isn't working.
Any suggestions? Thanks..
USE ....\wgesarea.dbf IN 1
USE ....\wgesdist.dbf IN 2
USE ....\wgessubd.dbf IN 3
USE ....\wgesbura.dbf IN 4
FOR j=1 TO 4
SELECT j
SCAN
SCATTER MEMVAR
IF m.distcd='43'
REPLACE distcd WITH '11'
ENDIF
ENDSCAN
ENDFOR
Any suggestions? Thanks..
USE ....\wgesarea.dbf IN 1
USE ....\wgesdist.dbf IN 2
USE ....\wgessubd.dbf IN 3
USE ....\wgesbura.dbf IN 4
FOR j=1 TO 4
SELECT j
SCAN
SCATTER MEMVAR
IF m.distcd='43'
REPLACE distcd WITH '11'
ENDIF
ENDSCAN
ENDFOR