Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get intellisense when defining a class in code?
Message
De
11/08/2003 11:30:39
 
 
À
11/08/2003 06:33:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00818729
Message ID:
00818925
Vues:
22
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform