To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=78503
------- Additional comments from [EMAIL PROTECTED] Thu Oct 18 08:39:24 +0000
2007 -------
Here is the new code that can replace ReplaceString and ArrayOutOfString:
' Replaces the string "OldReplace" through the String "NewReplace" in the String
' 'BigString'
Function ReplaceString(ByVal Bigstring, NewReplace, OldReplace as String) as
String
ReplaceString=join(split(BigString,OldReplace),NewReplace)
End Function
' Retrieves an Array out of a String.
' The fields of the Array are separated by the parameter 'Separator', that is
contained
' in the Array
' The Array MaxIndex delivers the highest Index of this Array
Function ArrayOutOfString2(BigString, Separator as String, Optional MaxIndex as
Integer)
Dim LocList() as String
LocList=Split(BigString,Separator)
' The following line has no effect because it seems that Optional variables are
always passed
' as ByValue variables. But MaxIndex must remain in the function for
compatibility reasons
' The user of the function can always use ubund on the return value to get the
highest index
' of the array.
' If not isMissing(MaxIndex) then maxIndex=ubound(LocList())
ArrayOutOfString2=LocList
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]