This is just an FYI that I just stumbled over. If you place multiple vbScript statements per line (this is allowed when separating the statements with the ':' char), as in
<font class="small">Code:</font><hr /><pre>
tArray(i)=sBikesVIN : tArray(i+1)=BikesVIN : i=i+2
tArray(i)=sBikesYear: tArray(i+1)=BikesYear: i=i+2
Keep in mind that when you step through one of these lines, using the F10 key ("execute" one statement), that the yellow line pointer will disappear, until you have pressed F10 for the number of statements on the line.
It will look like QTP has gone off into the weeds, but this is not the case.
Odd you mention this today. I often see this while debugging ("that the yellow line pointer will disappear"); and also the QTP status in the lower-right will sometimes remain at "running" when it should state "ready" or "break" (I think).
The difference is that I never place multiple statements on the same line.
The QTP editor kills me, though it is getting better over time.
I only use this technique when I have long list of init for data structures--it just reads easier say 20 lines of code that reads like a "table" with columns (or a spreadsheet), rather than 60 lines with each individual assignment.
But I do forget, as I seldom debug through this type of code either. I almost terminated QTP with task manager today, until I remembered what was happening. Thats when I made this posting.