Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why doesn't Intellisense work for PUBLIC variables
Message
 
À
19/12/2001 12:03:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00596149
Message ID:
00597104
Vues:
23
>>I have declared a PUBLIC recordset object. However intellisense does not work when i try to use the object inside a function, even if it's in the same file. Is there a reason? Any alternatives I can use?
>
>Intellisense doesn't look outside of the current function to get variable types. The alternative is, assign the public variable to a local one, and use the LOCAL AS.
>
>One thing, why are you using a public object? There is almost always a better solution than a public variable.

Mike,

Considering that it's not a public variable, but a custom property of a form:

Load Event:

This.oCustomer = CreateObject("AppOleServer.CustomerCls")

Isn't it a nice feature if This.oCustomer properties are made exposed anywhere in the form without dropping the class?
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net

CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform