Hi everyone... May i ask help.... I have P1 to P10 fieldname in my database named payments, i want to replace the value of my fields if it is equal to zero... How would i do it...Thanks and Godbless....
USE payments_old ALIAS pay
INDEX on idnum TO idnumx
LOCATE FOR idnum = "0123456"
IF FOUND()
for i=1 to 10
m.deyta = "P"+transform(m.i)
IF pay.deyta = 0
REPLACE pay.deyta WITH 400
ENDIF
NEXT
ENDIF
USE payments_old ALIAS pay
INDEX on idnum TO idnumx
LOCATE FOR idnum = "0123456"
IF FOUND()
for i=1 to 10
m.deyta = "P"+transform(m.i)
IF pay.deyta = 0
REPLACE pay.deyta WITH 400
ENDIF
NEXT
ENDIF