Hello,
I use somtimes Hector Pezoa library with OT4XB for MySQL because I don't need to install a ODBC driver like in SQLEXPRESS. Now I would like to use the eXpress++ browser and DC_SQLFieldBlock(). But I see only the first line of a dataset. It seems that there is something different to SQLEXPRESS, maybe the skipper. Has anyone a solution for that ?
regards
Rudolf
MySQL and Hector Pezoa library with OT4XB for MySQL
Re: MySQL and Hector Pezoa library with OT4XB for MySQL
Hi Rudolf, do not know if this piece of code can help, I utiliz SOFTPRO SPSQL without ODBC
@ 7.4,1 DCBROWSE oLineasCompraModificar data oAlbaranCTemp;
PRESENTATION DC_BrowPres ();
RBSELECT
DCBROWSECOL FIELD oAlbaranCTemp:dataarea:CANTIDAD_P WIDTH 4 HEADER EE1[3] OBJECT oCantModificar ;
PARENT oLineasCompraModificar ;
picture pp1[3] lostfocus bLostFocus
Regards
Miguel
@ 7.4,1 DCBROWSE oLineasCompraModificar data oAlbaranCTemp;
PRESENTATION DC_BrowPres ();
RBSELECT
DCBROWSECOL FIELD oAlbaranCTemp:dataarea:CANTIDAD_P WIDTH 4 HEADER EE1[3] OBJECT oCantModificar ;
PARENT oLineasCompraModificar ;
picture pp1[3] lostfocus bLostFocus
Regards
Miguel
Re: MySQL and Hector Pezoa library with OT4XB for MySQL
Hello,
I think the problem is not in the column objects, it seems to be the skipper, so in the oBrowse object. The column is shown correct so far, but only the first in the table.
regards
Rudolf
I think the problem is not in the column objects, it seems to be the skipper, so in the oBrowse object. The column is shown correct so far, but only the first in the table.
regards
Rudolf
Re: MySQL and Hector Pezoa library with OT4XB for MySQL
hm ... as i can say Hector do not use DATAREF for Resultset.c-tec wrote:I use somtimes Hector Pezoa library with OT4XB for MySQL because I don't need to install a ODBC driver like in SQLEXPRESS. Now I would like to use the eXpress++ browser and DC_SQLFieldBlock(). But I see only the first line of a dataset. It seems that there is something different to SQLEXPRESS, maybe the skipper.
as i understand you need a Cursor to browse with DC_*
Code: Select all
FUNCTION DC_SQLFieldBlock( oCursor, nField )
RETURN {|x| iif(PCount()==0, oCursor:fieldGet(nField), ;
oCursor:fieldPut(nField, x))}
Code: Select all
METHOD XbTable:Skip(nSkip)
METHOD XbTable:Skipper(nSkip)
METHOD XbTable:FieldGet(c)
METHOD XbTable:FieldPut(c, Value)
greetings by OHR
Jimmy
Jimmy
Re: MySQL and Hector Pezoa library with OT4XB for MySQL
Hello Jimmy,
and this must be in the source of DCBROWSE, I will take a look into it. I think some changes in the class code of Hectors lib could solve the problem.
regards
Rudolf
and this must be in the source of DCBROWSE, I will take a look into it. I think some changes in the class code of Hectors lib could solve the problem.
regards
Rudolf