On Tue, 21 May 2013 03:49:27 -0700 (PDT), Johan Nel
<
joha...@xsinet.co.za> wrote:
Hello Martin,
>
>The VO Sql classes (ODBC)
These actually work quite well. First create in Windows an ODBC
connection to the Oracle database, say you call it MyOracle.
Then use this kind of code:
LOCAL oStatement AS SQLStatement
oConn:=SQLConnection{"MyOrcale","","password"}
IF !oConn:Connected
ErrorBox{,Connection failed")}:Show()
RETURN FALSE
ELSE
SELF:oDCFXStatus:Caption:="Connected"
ENDIF
cSQL:="USE myDatabase"
oStatement:=SQLStatement{cSQL,oConn}
IF !oStatement:Execute("")
ErrorBox{,Vt(,"Not executed: ")+cSQL}:Show()
RETURN FALSE
ELSE
SELF:oDCFXStatus:Caption:="Connected with MyDatabase"
ENDIF
You can now access/assign values to the database using SQL statments
and the Execute method of the SQL class.
Dick