summaryrefslogtreecommitdiff
path: root/wizards
diff options
context:
space:
mode:
authorJean-Pierre Ledure <jp@ledure.be>2015-07-26 13:10:18 +0200
committerJean-Pierre Ledure <jp@ledure.be>2015-07-26 13:10:18 +0200
commitfaa5b9602839b93fc4b82bb36fbef03e022a1924 (patch)
tree51cf1ecac1964e9958ac64d060305eb24ed6bc16 /wizards
parent33a21d37f376abaaabdaceaa09160cab962038fc (diff)
Access2Base - Return value of Execute method in CommandBarControl
Method always returned False. Should return True when successful. Change-Id: I82c8a6e425409032ccf5217b940ec81b277a6313
Diffstat (limited to 'wizards')
-rw-r--r--wizards/source/access2base/CommandBarControl.xba9
1 files changed, 5 insertions, 4 deletions
diff --git a/wizards/source/access2base/CommandBarControl.xba b/wizards/source/access2base/CommandBarControl.xba
index a6bdcbc577e6..286dc07daa6d 100644
--- a/wizards/source/access2base/CommandBarControl.xba
+++ b/wizards/source/access2base/CommandBarControl.xba
@@ -152,24 +152,25 @@ Const cstThisSub = &quot;CommandBarControl.Execute&quot;
Utils._SetCalledSub(cstThisSub)
Dim sExecute As String
- Execute = False
+
+ Execute = True
sExecute = _GetPropertyValue(_Element, &quot;CommandURL&quot;, &quot;&quot;)
Select Case True
- Case sExecute = &quot;&quot;
+ Case sExecute = &quot;&quot; : Execute = False
Case _IsLeft(sExecute, &quot;.uno:&quot;)
Execute = DoCmd.RunCommand(sExecute)
Case _IsLeft(sExecute, &quot;vnd.sun.star.script:&quot;)
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 &apos; Execute V1.3.0