FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour TMySql problem
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
TMySql problem
Posted: 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 (fw): Select all Collapse
   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)
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
Re: TMySql problem
Posted: Thu Aug 13, 2009 03: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 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)

Continue the discussion