b***@freedesktop.org
2011-03-25 05:38:25 UTC
https://bugs.freedesktop.org/show_bug.cgi?id=35644
Summary: Libre Office gives BASIC runtime error on Calc.Macro
load, OO does not.
Product: LibreOffice
Version: LibO 3.3.2 release
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: BASIC
AssignedTo: libreoffice-***@lists.freedesktop.org
ReportedBy: ***@gmail.com
This simple piece of test code is tested in both Using Libre Office 3.3.1, and
Open Office 3.3
This works in OO3.3.1, with "Option VBASupport 1" either active, or commented.
However, in Libre Office, it chokes on this line,
Dim TestER(12) as EmployeeRecord
only if Option VBASupport 1 is active.
Gives : BASIC runtime error'9', index out of defined range - Err ? but it is
where one defines the range ?!
It seems to be only every second RUN that does this too.. ?!
Worse, an attempt to SAVE the file, launches LOTS of these same error messages
?
If I change it to
strEmpName As String * 30, then the Save Error message seems to go away,
but the Run error message still occurs sometimes.
Is this a bug, or a feature ?
Option VBASupport 1Type EmployeeRecord
sngHourlyRate As Single
dtmHireDate As Date
strEmpName As String
End Type
Dim TestER(12) as EmployeeRecord
Sub Main ' used for test instances codes
TestER(0).sngHourlyRate = 1.122
TestER(0).strEmpName = "EmName"
TestER(0).dtmHireDate = Now
If (TestER(0).sngHourlyRate = 1.122) Then
TestER(0).strEmpName = TestER(0).strEmpName & " Added "
MsgBox (TestER(0).strEmpName & TestER(0).dtmHireDate)
MsgBox (TestER(1).strEmpName & TestER(1).dtmHireDate)
End If
Summary: Libre Office gives BASIC runtime error on Calc.Macro
load, OO does not.
Product: LibreOffice
Version: LibO 3.3.2 release
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: BASIC
AssignedTo: libreoffice-***@lists.freedesktop.org
ReportedBy: ***@gmail.com
This simple piece of test code is tested in both Using Libre Office 3.3.1, and
Open Office 3.3
This works in OO3.3.1, with "Option VBASupport 1" either active, or commented.
However, in Libre Office, it chokes on this line,
Dim TestER(12) as EmployeeRecord
only if Option VBASupport 1 is active.
Gives : BASIC runtime error'9', index out of defined range - Err ? but it is
where one defines the range ?!
It seems to be only every second RUN that does this too.. ?!
Worse, an attempt to SAVE the file, launches LOTS of these same error messages
?
If I change it to
strEmpName As String * 30, then the Save Error message seems to go away,
but the Run error message still occurs sometimes.
Is this a bug, or a feature ?
Option VBASupport 1Type EmployeeRecord
sngHourlyRate As Single
dtmHireDate As Date
strEmpName As String
End Type
Dim TestER(12) as EmployeeRecord
Sub Main ' used for test instances codes
TestER(0).sngHourlyRate = 1.122
TestER(0).strEmpName = "EmName"
TestER(0).dtmHireDate = Now
If (TestER(0).sngHourlyRate = 1.122) Then
TestER(0).strEmpName = TestER(0).strEmpName & " Added "
MsgBox (TestER(0).strEmpName & TestER(0).dtmHireDate)
MsgBox (TestER(1).strEmpName & TestER(1).dtmHireDate)
End If
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.