Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get intellisense when defining a class in code?
Message
From
11/08/2003 11:30:39
 
 
To
11/08/2003 06:33:57
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00818729
Message ID:
00818925
Views:
19
Andy,

Found the problem. It is not enough to say DEFINE CLASS xx AS yy of zz.prg. In order for intellisense to work VFP must be able to find the class because you SET PROC TO zz.prg or, I imagine, SET CLASSLIB to zzz.vcx.

Thanks for your help.

Alex

>Hi Alex
>
>>Sounds interesting, but I can't make it work. Why could that be?
>
>It will only work inside a method definition. Move the 'LOCAL' declaration insid the procedure and it should work just fine:
>
>
DEFINE CLASS bizVac AS aBiz OF aBiz.prg
>    PROCEDURE Init
>      LOCAL This AS aBiz OF aBiz.prg
>      * Would like intellisense here
>      This.
>   ENDPROC
>
>
>YOu have to re-define it in each method that you want to use it, and the prg must have been saved at least once.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform