Apache OpenOffice (AOO) Bugzilla – Issue 39547
Basic IDE Watch fails to properly watch arrays
Last modified: 2005-04-06 09:59:12 UTC
I have seen this error reported twice on the OOoForum so I checked it out and it seems accurate. Option Explicit Sub Main Dim aText(1,2) As String Dim iub1%, j% Dim iub2%, i% iub1 = uBound(aText(),1) iub2 = uBound(aText(),2) For i = 0 To iub1 For j = 0 To iub2 aText(i,j) = "i =" & cstr(i) & " j=" & cstr(j) Next Next REM Place a break on the print statement and add a watch on REM aText(1,2) and on aText(2,1). REM Watch aText(1,2) displays {<Invalid index>} REM Watch aText(2,1) displays {i=0 j=0} REM Both of these watch values are wrong. REM The print statement is correct. REM Watching other values, such as 0,0 or 1,0 work. REM The print statement displays "i=1 j=2" Print aText(1, 2) End Sub
np->tbe for you happy new year :-)
TBE->AB: This seems to be yours.
In the m77 development build, the watch list will NOT accept aText(1, 2), but rather provides a nice browser that watches the entire array. If this will be the final behavior, then you can probably say "Yeah, that is how it is supposed to work" and then close this puppy! I just checked it!
Hi Andrew, indeed the new watch window behaviour can be considered as final. Really an improvement, isn't it? :-) -> Set to FIXED.
Closed