TMySql problem

TMySql problem

Postby dutch » Thu Aug 13, 2009 11:20 am

Dear All,
I try to updae TMySql table but it doesn't work the data on MySql is not update. I
Code: Select all  Expand view
  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 19.01 / 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)
User avatar
dutch
 
Posts: 1542
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: TMySql problem

Postby dutch » Thu Aug 13, 2009 3:09 pm

Dear All,

I've got the problem now. It is ::save() or ::update(), because I check the odb1:rta_ooo is changed but it doesn't save data to MySql Server.

Have anyone face this problem?

Regards,
Dutch
Regards,
Dutch

FWH 19.01 / 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)
User avatar
dutch
 
Posts: 1542
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 82 guests