Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Variable Definition Question
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00609830
Message ID:
00612414
Views:
27
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
Previous
Reply
Map
View

Click here to load this message in the networking platform