QueryTimeOut-Eigenschaft eines Statement-Objektes ändern
Verfasst: Di, 18.12.2012 10:28
Hallo,
Kann mir jemand sagen wie man die QueryTimeOut-Property eines Statementes-Objektes verändert? In XRay ist sie <empty>.
generiert (im IF-Befehl) folgende Fehlermeldung:
Fehler 1: Es ist eine Exception aufgetreten
Type: com.sun.star.lang.WrappedTargetException
Message: TargetException: Type: com.sun.star.uno.Exception
Message: .In line : 33, 18.12.2012 10:22:03
(oStatement.QueryTimeOut = ... gibt dieselbe Meldung)
Kann mir jemand sagen wie man die QueryTimeOut-Property eines Statementes-Objektes verändert? In XRay ist sie <empty>.
Code: Alles auswählen
Function eSQL(sSQL as String, optional vTimeOut)
dim oStatement
'goDatabase ist das com.sun.star.comp.dba.ODatabaseDocument (Base-Datei)
oStatement = goDatabase.CurrentController.ActiveConnection.createStatement
oStatement.ResultSetType = com.sun.star.sdbc.ResultSetType.SCROLL_INSENSITIVE
if not ismissing(vTimeOut) then oStatement.setPropertyValue("QueryTimeOut", vTimeOut)
Fehler 1: Es ist eine Exception aufgetreten
Type: com.sun.star.lang.WrappedTargetException
Message: TargetException: Type: com.sun.star.uno.Exception
Message: .In line : 33, 18.12.2012 10:22:03
(oStatement.QueryTimeOut = ... gibt dieselbe Meldung)