Jess,
In addition to what Alexandre and Larry have said (that you need to both declare and initialise the variable), why would you expect the intellisense to work outside the Init? You've declared the variable as LOCAL within that method - it's not in scope anywhere else.
Cheers,
Andrew
>Craig,
>
>What am I missing here??
>
>In the INIT method of the form,
>
>LOCAL oObj AS ADODB.CONNECTION
>oObj.OPEN("bbfsdsn","sa","")
>oObj.CursorLocation = 2
>
>This one does not work at runtime although intellisense popups during development time and within init only. Meaning, oObj. has no more intellisense popup in other methods.
>
>oObj = CREATEOBJECT("ADODB.CONNECTION")
>oObj.OPEN("bbfsdsn","sa","")
>oObj.CursorLocation = 2
>
>This one works, but no intellisense available in any method.
>
>Please educate me.
If we were to introduce Visual FoxBase+, would we be able to work from the dotNet Prompt?
From Top 22 Developer Responses to defects in Software
2. "It’s not a bug, it’s a feature."
1. "I thought I fixed that."
All my FoxTalk and other articles are available on my
web site.
Unless specifically identified otherwise, anthing posted here is purely my opinion and may or may not reflect the policies or practices of Microsoft.