load 'guilib.ring'
oSqlDb = new qsqldatabase().addDatabase('QSQLITE')
oSqlDb.setdatabasename('test.db')
if ! oSqlDb.open()
? 'Error '+oSqlDb.lastError().text()
od = oSqlDb.drivers()
for x=1 to od.size()
? od.value(x)
next
return
ok
oSqlQuery = new QSqlQuery()
new qapp{
stylefusionblack()
new qwidget() {
new qpushbutton(self) {
setText('Test')
}
show()
}
exec()
}
But when i run it , i get this output:
Error Driver not loaded
QODBC
QODBC3
QPSQL
QPSQL7
==============================
Note: I have this file in %ring_dir%\sqldrivers:
qsqlite.dll
qsqlited.dll
qsqlodbc.dll
qsqlodbcd.dll
qsqlpsql.dll
qsqlpsqld.dll
=================================
So what should I do?
Thanks...
Mohannad
--
---
You received this message because you are subscribed to the Google Groups "The Ring Programming Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ring-lang+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ring-lang/87bca744-6f3d-418c-8da0-97b01c5ded6an%40googlegroups.com.