You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2015/04/27 02:55:41 UTC
[Issue 126272] OpenOffice.org Basic compile error : if statement
followed by End If - in next Line ???
https://bz.apache.org/ooo/show_bug.cgi?id=126272
Adam E.Z. <E....@gmx.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|OpenOffice.org Basic |OpenOffice.org Basic
|compile error :if statement |compile error : if
|followed by Endf If in next |statement followed by End
|Line ??? |If - in next Line ???
--- Comment #1 from Adam E.Z. <E....@gmx.de> ---
Function Foo(A as Integer) As Integer
Dim B as Integer
If A > 0 Then ' REM 1
B = 2 ' REM 2
If A > 2 Then B = 3 Else B = 0 ' REM 3 => syntax err
End If
Foo = B
End Function
Function Foo2(A as Integer) As Integer
Dim B as Integer
If A > 0 Then ' REM 1
B = 2 ' REM 2
If A > 2 Then B = 3 Else B = 0 ' REM 3 => NO syntax err
End If
Foo2 = B
End Function
--
You are receiving this mail because:
You are the assignee for the issue.