FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour MySql and xBrowse
Posts: 2170
Joined: Fri Jul 18, 2008 01:24 AM
MySql and xBrowse
Posted: Sun Apr 01, 2012 02:09 AM
Hi all.
Perhaps one with experience in MySql want to tell me that I have wrong with this code:

oCatalogo:= oServer:Query( "SELECT * FROM catalogo ORDER BY codicont" )

DEFINE DIALOG oDlg RESOURCE "CATALOGO" TITLE "Mantenimiento Catalogo"
oBrw := TXBrowse():New( oDlg )
oBrw:SetMySql(oCatalogo,.f.)
...
...

If I do this...

Code (fw): Select all Collapse
if oCatalogo:Locate("Codicont",cCodigo,,)
        MsgInfo("Encontrado")  
        oCatalogo:Refresh() 
        oBrw:Refresh()  // It's found out and refresh the oBrw, but we know it is very slow
  endif


...but if I do this, it's found, but the oBrw is not refreshed...!!!

Code (fw): Select all Collapse
if oCatalogo:Seek(cCodigo,"codicont")
        MsgInfo("Encontrado")
        oCatalogo:Refresh() 
        oBrw:Refresh() 
   endif


My version is FWH 10.06
Regards.

Francisco J. Alegría P.
Chinandega, Nicaragua.
Francisco J. Alegría P.

Chinandega, Nicaragua.



Fwxh-MySql-TMySql

Continue the discussion