Mark, thanks for the description of the trace function etc. I've played a
bit with it and it seems to work but not always. Have a look at the example
below: the first call to self~getdata correctly results in a trace message
but the second call to the same method, triggered by an expand action, does
NOT work and generates message Error 91.999: Message "EXEC" did not return
a result
I can't see what's wrong with this. Comment out the db~trace(.sqltrace~new)
statement and the problem is gone. Any ideas?
Staffan
------------------------
page1 = .page1~new(,,,"TreeView",,12)
ps = .propertysheetdialog~new(.array~of(page1))
ps~execute
::class page1 subclass userpspdialog
::method defineDialog
expose tree db
self~createTreeView(2000,10,10,self~cx-20,self~cy-20,"ALL
NODRAG","TREE_VIEW")
db = .ooSqliteConnection~new("test.db")
db~trace(.sqltrace~new)
self~getdata -- This is working
::method initDialog
expose tree db
tree = self~newTreeView(2000)
self~connectTreeViewEvent(2000,"EXPANDING","onExpanding")
tree~add("Root",0,,,1)
::method onExpanding unguarded
expose tree db
use arg id, hItem, currentItemStatus
reply 0
self~getdata -- This is NOT working
::method getdata
expose tree db
say db~exec("SELECT * FROM DATA;")
::class sqltrace
::method traceCallBack
say arg(1)
return .ooSQLite~OK
::requires "oosqlite.cls"
::requires "oodialog.cls"
-------------------------
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users