is intellisense watching previous lines?
I have Set objExcel = CreateObject("Excel.Application") on one line.
5 lines later I type
Set oNewWorkBook = objExcel.Workbooks.
Intellisense shows the correct list of methods and properties.
I comment out the CreateObject line.
Now intellisense does not show up.
Is QTP watching which previous objects have been created to know whether to show the intellisence.
Kind of creepy!
Usually it just complains when I press the save button.
It reminds me of old QuickBasic that would notice when I move the cursor to a new line.
Most every ide for any modern language is doing that. Essentially it is compiling the code as you work on it and in doing so is able to tell you where errors are going to be and how to autocomplete things. That's just what an ide does for you, without that, might as well just be working in notepad then trying to run it at command prompt to see any errors at run-time.
I like this feature. They made it so it does not get in the way or get annoying to the developer. It gives additional assistance,but does not annoy me.
It annoys the heck out of me actually and with intellisense not working in function libraries linked at runtime in qtp 10 and prior I just got used to working without it. So when I get into an ide I usually disable it unless it's for a language or object types I'm not familiar with.
I find that if the intellisence info is too verbose it is not onthe screen.
It is rthe situation with the .save method of excel files.