Oliver Brinzing schrieb:
Hi,
are there any known issues with the basic engine in oo 3.0 ?
i tried m23/m25 with same results ...
i have code *similar* to the snippet below, which will filter Named Ranges
of a calc document, for example all Named Ranges starting with "X_XXX" ...
it will return an array of strings, containing the cell ranges ...
debugging the program show's that the array contains bytes instead of
string.
mRanges() shows type: String, mX() shows type Byte ...
btw: i can not reproduce the bug with the example below
no problems with oo 2.4.1 at all...
any hints are welcome
Oliver
Hi Oliver,
What happens if you set mX as Variant?
But I'm not an expert, and as the code below is not specific to the Calc
API, you probably should ask on the [EMAIL PROTECTED] or [EMAIL PROTECTED] mailing list.
Regards
Daniel
REM ***** BASIC *****
OPTION EXPLICIT
Sub Main
Dim mX() as String
mX() = Test()
'after the call mX() sometimes has Byte Values instead of String !
'for example: mX(0) = "1", mX(0) = "0", ...
MsgBox mX(0) & " " & mX(1)
End Sub
Function Test() as Variant
Dim mRanges(100) as String
mRanges(0) = "1"
mRanges(1) = "$A$1:$B$10"
' mRanges is a String Typ (correct)
Test = mRanges()
End Function
--
Sun Microsystems GmbH
Nagelsweg 55
20097 Hamburg
Germany
Sitz der Gesellschaft: Sonnenallee 1, D-85551 Kirchheim-Heimstetten
Amtsgericht Muenchen: HRB 161028
Geschaeftsfuehrer: Thomas Schroeder, Wolfgang Engels, Dr. Roland Boemer
Vorsitzender des Aufsichtsrates: Martin Haering
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]