FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Fix para xbrowse
Posts: 1789
Joined: Tue Oct 11, 2005 05:01 PM
Fix para xbrowse
Posted: Tue May 30, 2017 05:43 PM
por favor agregar esta dos linea en xbrowse, metodo SetColFromMySQL
Code (fw): Select all Collapse
   CASE cType       == 'T'  // Dolphin returns Char Value (time stamp sting) Fix; 2014-JUN-19
      nLen              := 19
      cType             := 'C'

   CASE cType       == 'L'  //new
      nLen              := 1   //new

esto porque en caso contrario lo campos logicos de una consulta de tmysql no muestran nada. con la correccion ya muestra el checkbox correctamente,


Code (fw): Select all Collapse
   
oQry := oServer:Query( "select  * from prueba" )     
   
   if oServer:NetErr()
      Alert( oServer:ErrorTxt() )
      oServer:Destroy()
      return
   endif
  
   xbrowser oQry

   oQry:Destroy()
   
   oServer:Destroy()
Salu2

Carlos Vargas

Desde Managua, Nicaragua (CA)
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Fix para xbrowse
Posted: Wed May 31, 2017 09:22 AM

Carlos,

gracias :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: Fix para xbrowse
Posted: Wed May 31, 2017 12:41 PM

Carlos

What difference is there using the Destroy() vs CLose() ?

Rick Lipkin

Posts: 1789
Joined: Tue Oct 11, 2005 05:01 PM
Re: Fix para xbrowse
Posted: Wed May 31, 2017 10:39 PM
There is no difference, since one is only calling the other :-)
in the case of the tmysql no have method close, but is same of end.

Code (fw): Select all Collapse
METHOD End() INLINE ::Destroy()
...
METHOD Destroy() CLASS TMySQLQuery

   ::nResultHandle := NIL

   RETURN Self
...
Salu2

Carlos Vargas

Desde Managua, Nicaragua (CA)
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: Fix para xbrowse
Posted: Thu Jun 01, 2017 12:41 PM

Carols

Thanks for the explanation ..

Rick Lipkin

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Fix para xbrowse
Posted: Fri Jun 09, 2017 10:29 AM

Mr Carlos
Your suggested change is incorporated in fwh 17.06

Regards



G. N. Rao.

Hyderabad, India

Continue the discussion