To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=91911
Issue #|91911
Summary|basic function return's array of byte instead string!
Component|scripting
Version|OOo 3.0 Beta 2
Platform|All
URL|
OS/Version|All
Status|NEW
Status whiteboard|
Keywords|
Resolution|
Issue type|DEFECT
Priority|P2
Subcomponent|code
Assigned to|kr
Reported by|brinzing
------- Additional comments from [EMAIL PROTECTED] Mon Jul 21 11:00:26 +0000
2008 -------
Hi,
just have a look at the example ...
BTW: OO 2.4.1 return's an array of strings
REM ***** BASIC *****
OPTION EXPLICIT
Sub Main
Dim s as String
Dim mTmp() as String
' return's always a string as expected ...
s = Test(True)
MsgBox s
' return's an array of byte's if Test(True) was called before !!!
' this is different from oo 1.1.5 / 2.4.1
mTmp() = Test(False)
MsgBox mTmp(0) & " " & mTmp(1)
End Sub
Function Test(ByVal bFlag as Boolean) as Variant
Dim mRanges(100) as String
If (bFlag = True) Then
Test = "return a String"
Else
mRanges(0) = "return an"
mRanges(1) = "Array"
Test = mRanges()
EndIf
End Function
---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]