Kaydet (Commit) faa5b960 authored tarafından Jean-Pierre Ledure's avatar Jean-Pierre Ledure

Access2Base - Return value of Execute method in CommandBarControl

Method always returned False. Should return True when successful.

Change-Id: I82c8a6e425409032ccf5217b940ec81b277a6313
üst 33a21d37
......@@ -152,24 +152,25 @@ Const cstThisSub = "CommandBarControl.Execute"
Utils._SetCalledSub(cstThisSub)
Dim sExecute As String
Execute = False
Execute = True
sExecute = _GetPropertyValue(_Element, "CommandURL", "")
Select Case True
Case sExecute = ""
Case sExecute = "" : Execute = False
Case _IsLeft(sExecute, ".uno:")
Execute = DoCmd.RunCommand(sExecute)
Case _IsLeft(sExecute, "vnd.sun.star.script:")
Execute = Utils._RunScript(sExecute, Array(Nothing))
Case Else
End Select
Exit_Function:
Utils._ResetCalledSub(cstThisSub)
Exit Function
Error_Function:
TraceError(TRACEABORT, Err, cstThisSub, Erl)
Reset = False
Execute = False
GoTo Exit_Function
End Function ' Execute V1.3.0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment