Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Variable Definition Question
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00609830
Message ID:
00612414
Vues:
28
I agree, there is not much use to declare a type for local (private, public as well) variables.

However, for classes declared as OLE Public, defining types for parameters and return value types for methods, makes these objects behave in COM and COM+ environments much better.

>Agreed, but there is no strict adherence to variable type
>definitions. I could do:
>
>PRIVATE oForm as Form
>oForm = "Hello"
>

>
>and VFP doesn't complain. So the point is, other than allowing
>me so see the IntelliSense for known object types, why bother?
Thanks,
Dan Jurden
djurden@outlook.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform