Hello ,
FWH 14.04 , using functions from adofunc to make connection and open table , xharbour fail's in ANSI code
According to this forum i changed the register as described in one from the thread's.
Using harbour i have no problems
FRank
xharbour fail's in ANSI code
nageswaragunupudi wrote:xharbour fail's in ANSI code
Can you please explain in greater detail?
2) AT this moment Harbour fails on a expression as oRs:Sort(cColumn)
I will start today with a new thread. Maybe is the code which i am writing (comboclass for arrays with multiple columns or ADO recordset) usefull for others to
#include "fivewin.ch"
#include "adodef.ch"
function Main()
local oCn, oRs
local cVal, cRead
cVal := "Zürich"
? Asc( SubStr( cVal, 2, 1 ) )
oCn := FW_OpenAdoConnection( "c:\fwh\samples\xbrtest.mdb" )
oRs := FW_OpenRecordSet( oCn, "CUSTOMER" )
if MsgYesNo( "Write?" )
oRs:Fields( "City" ):Value := cVal
oRs:Update()
endif
oRs:Close()
oRs := FW_OpenRecordSet( oCn, "CUSTOMER" )
cRead := oRs:Fields( "City" ):Value
? cRead, cRead == cVal, Asc( SubStr( cRead, 2, 1 ) )
oRs:Close()
oCn:Close()
return nil
#include "fivewin.ch"
#include "adodef.ch"
function Main()
local oCn, oRs
local cVal, cRead
cVal := "Zürich"
? Asc( SubStr( cVal, 2, 1 ) )
oCn := FW_OpenAdoConnection( "c:\fwh\samples\xbrtest.mdb" )
oRs := FW_OpenRecordSet( oCn, "CUSTOMER" )
if MsgYesNo( "Write?" )
#ifdef __XHARBOUR__
oRs:Fields( "City" ):Value := cVal
#else
oRs:Fields( "City" ):Value := AnsiToOem( cVal )
#endif
oRs:Update()
endif
oRs:Close()
oRs := FW_OpenRecordSet( oCn, "CUSTOMER" )
#ifdef __XHARBOUR__
cRead := oRs:Fields( "City" ):Value
#else
cRead := OemToAnsi( oRs:Fields( "City" ):Value )
#endif
? cRead, cRead == cVal, Asc( SubStr( cRead, 2, 1 ) )
oRs:Close()
oCn:Close()
return nil
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 51 guests