Issue 39547 - Basic IDE Watch fails to properly watch arrays
Summary: Basic IDE Watch fails to properly watch arrays
Status: CLOSED FIXED
Alias: None
Product: General
Classification: Code
Component: scripting (show other issues)
Version: OOo 1.1.4
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: ab
QA Contact: issues@framework
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-24 05:09 UTC by andrew
Modified: 2005-04-06 09:59 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description andrew 2004-12-24 05:09:02 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
Comment 1 noel.power 2005-01-05 12:00:07 UTC
np->tbe for you happy new year :-)
Comment 2 thomas.benisch 2005-01-05 12:07:33 UTC
TBE->AB: This seems to be yours.
Comment 3 andrew 2005-02-14 18:46:34 UTC
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!
Comment 4 ab 2005-04-05 16:41:57 UTC
Hi Andrew, indeed the new watch window behaviour can be considered as final.
Really an improvement, isn't it? :-)  -> Set to FIXED.
Comment 5 ab 2005-04-06 09:59:12 UTC
Closed