Dear All,
I try to updae TMySql table but it doesn't work the data on MySql is not update. I
Thanks in advance for any help.
Dutch
I try to updae TMySql table but it doesn't work the data on MySql is not update. I
oServer:= TMySQLServer():New( cHost, cUser, cPass, cPort )
odb1:=oServer:Query("select * from rmty_avl")
n := 0
cTlRec := strim(odb1:reccount())
odb1:gotop()
do while !odb1:eof()
if RTA->(DbSeek( dtos(odb1:rta_date)+odb1:rta_rmty ))
if odb1:rta_ooo <> RTA->RTA_OOO
odb1:rta_ooo := RTA->RTA_OOO // ****** This line is not update to MySql Table
n++
end
if odb1:rta_occ <> RTA->RTA_OCC
odb1:rta_occ := RTA->RTA_OCC // ****** This line is not update to MySql Table
n++
end
odb1:save()
end
oDlg:cMsg := "Record Update : "+ltrim(str(odb1:recno()))+"/"+cTlRec+" Completed"
oDlg:Refresh()
SysRefresh()
odb1:skip()
end
CLOSEFILE('RTA')Thanks in advance for any help.
Dutch
Regards,
Dutch
FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
Dutch
FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)