https://bugs.documentfoundation.org/show_bug.cgi?id=151005

--- Comment #2 from tanh <tanhda...@gmail.com> ---
In LO, the statement
DummySub (a)

Does NOT create and discard a reference. Rather, it acts the same way as the
CALL syntax


LibreOffice: DummySub(a) is the same as Call DummySub(a).
MS VBA: DummySub (a) is NOT the same as Call DummySub(a)

LibreOffice: DummySub2(a,b) is NOT a syntax error.
MS VBA: DummySub2(a,b) IS a syntax error.
MS VBA: Call DummySub2(a,b) is NOT a syntax error.

LibreOffice: Call DummySub2( (a), b) is the same as Call DummySub2( a,b)
MS VBA: Call DummySub2( (a), b) is NOT the same as Call DummySub2( a,b)

==========
sub Test()
    Dim a As String,b
    a = "X"
    call DummySub2((a),b)
    MsgBox (a)
End Sub

Sub DummySub2(val As String,b)
    val = "Y"
End Sub
==========

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to