Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hungarian Notation cost you too much in VFP
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00048156
Message ID:
00048421
Views:
33
>>Really, trust me......I can wait! I am already having way too much fun trying to figure out how to do some of the stuff my users' want without having to worry about typing variables!
>
>Worry... what's to worry about. :-) Example
>
>DECLARE
> GLOBAL CHAR PersonEdit *person who modified the record last
> LOCAL NUM TotalPeople *number of people at dinner
>END DECLARE
>
>The above would make my day. Changing variable types on the fly is akin to the "goto".

I agree with Dorris on this one. I used Clipper 5.x where (according to in-house standards, not required by Clipper) every variable had to be declared.
Whether or not it was strongly typed was of very little importance relative to the HOURS debugging old code where variables were just 'used' when they were needed.

I try to declare major variables for any programmers unlucky enough to have to work with my code in the future, but I'm grateful I can throw in a

FOR n = 1 to 25

without worrying where n came from and was it a character variable before.

Now MY pet peeve is the need for a form-wide variable. Sometimes it just isn't convenient to use a form property....

Barbara
Barbara Paltiel, Paltiel Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform