I think that when you try to open the database in your preOpenStack
handler, the database library has not yet been loaded. Try setting up
a delayed call to open it e.g.

on preOpenStack
  send "connectToDatabase" to me in 1 second
end preOpenStack

on connectToDatabase
    global gConID
    put revdb_connect("sqlite3","DB_FLK.db",,,,,"my emailadress","my
password") into tConID
  if tConID is "" then
    answer warning "Problem creating or accessing database!"
  else
    answer information "DB_FLK Connected! Your connection ID is: " &
tConID
    put tConID into gConID
  end if
end connectToDatabase

HTH,
Sarah

I am sorry, it don't helps. I even set the latency to 10 seconds.There must be an other cause apparently.

:-(
Reinhold

Have you tried

on preOpenStack
  send "mouseUp" to btn "my_manual_database_open" in 1 second
end preOpenStack

That is to call your button script which you know works otherwise? Also, such functions IMHO should be run in openstack not preopenstack. There is a subtle difference.

Robert
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to