Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strong typing in VFP9 - what's the point?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01314226
Message ID:
01314227
Views:
16
>I've been happily using what I thought was strong variable typing in VFP9 since it was released.
>
>Today I just happened to assign a numeric value to a string variable (declared AS STRING) and nothing happened. For some reason that really got my interest and I looked in the help, and lo and behold strong typing in VFP9 doesn't do anything except apparently kick in intellisense during coding and make developers think strong typing actually exists in VFP..??
>
>Here I've been touting strong typing as one of the selling points for VFP9 development.
>
>Am I missing something?
>
>Try assigning the wrong data type to something in a .NET language - strong typing!

VFP is not a strong type language. It was discussed here few weeks ago. As you correctly observed, all as String, etc. is just for intellisense.

Though there is something in FOR EACH loop (FOXOBJECT)... Don't recall particular circumstances where it's needed...

BTW, I think it was added in VFP8, not VFP9.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform