Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why cannot use & with Thisform.SomeProperty
Message
 
 
To
09/05/2009 02:56:18
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01397844
Message ID:
01399240
Views:
81
Fabio,

>But:
>1 anyone know an effective program without loops?

Some problems resolve to SET based operations that don't require any loops at all.

>2 discipline is the primary rule to write bugs free programs!
>Then mdot or it is used wherever or not used at all

The coding standards I prefer to use do not use m. In my opinion it makes the code less readable and less transportable to other codebases like C# and SQL that I use. If a developer takes proper care to not use variable names that conflict with field names there is no issue.

And where I find myself writing a loop that executes enough iterations that using m.i for the loop counter would make a significant performance difference I take a step back and ask the question: "Can this be done with a single set based statement?" to get rid of the loop entirely.

>And...
>
>the discipline VFP says:
>a a m.identifier is variable.
>an identifier without mdot may be a variable;
>for me the two are VERY different.
>
>Of course, the discipline should not be in agreement with laziness.
>Combat laziness is an unequal struggle
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform