Fix para xbrowse

Fix para xbrowse

Postby carlos vargas » Tue May 30, 2017 5:43 pm

por favor agregar esta dos linea en xbrowse, metodo SetColFromMySQL
Code: Select all  Expand view  RUN

   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,Image

Image
Code: Select all  Expand view  RUN
 
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)
User avatar
carlos vargas
 
Posts: 1721
Joined: Tue Oct 11, 2005 5:01 pm
Location: Nicaragua

Re: Fix para xbrowse

Postby Antonio Linares » Wed May 31, 2017 9:22 am

Carlos,

gracias :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42203
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Fix para xbrowse

Postby Rick Lipkin » Wed May 31, 2017 12:41 pm

Carlos

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

Rick Lipkin
User avatar
Rick Lipkin
 
Posts: 2666
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: Fix para xbrowse

Postby carlos vargas » 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: Select all  Expand view  RUN

METHOD End() INLINE ::Destroy()
...
METHOD Destroy() CLASS TMySQLQuery

   ::nResultHandle := NIL

   RETURN Self
...
 
Salu2
Carlos Vargas
Desde Managua, Nicaragua (CA)
User avatar
carlos vargas
 
Posts: 1721
Joined: Tue Oct 11, 2005 5:01 pm
Location: Nicaragua

Re: Fix para xbrowse

Postby Rick Lipkin » Thu Jun 01, 2017 12:41 pm

Carols

Thanks for the explanation ..

Rick Lipkin
User avatar
Rick Lipkin
 
Posts: 2666
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: Fix para xbrowse

Postby nageswaragunupudi » Fri Jun 09, 2017 10:29 am

Mr Carlos
Your suggested change is incorporated in fwh 17.06
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10690
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 21 guests