MySql and xBrowse

MySql and xBrowse

Postby FranciscoA » Sun Apr 01, 2012 2: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: Select all  Expand view
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: Select all  Expand view
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
User avatar
FranciscoA
 
Posts: 2158
Joined: Fri Jul 18, 2008 1:24 am
Location: Chinandega, Nicaragua, C.A.

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 126 guests