> Today I use VFP to improve my own productivity and distribute my work to a very small community.
>
> Foxite is a great resource for keeping me out of trouble, but someday I know I'll need to hire an expert to make my applications more robust and networkable.
>
> So I direct my query to you VFP consultants in Foxite land: What are the common coding practices that newbies make that I should avoid to make your consulting life easier?
>
> Three things I've heard on Foxite so far
>
> 1. Keep public variables to a minimum
> 2. Use Hungarian notation
> 3. Create your own subclasses of the VFP base classes
> 4. . .
> 5. . .
>
> Are there certain coding practices that make you want to tear your hair out?
>
> Dan Baker
> Effort of the Poconos, PA, USA
In addition to what others said:
Get used to declaring your variables and their type before you use them. That way when you switch to another language you will benefit. Also the danger of overwriting other variables will not be there. Your Method variables should all be LOCAL and declared as such.
LOCAL cName as String, nNumber as Integer
will add more when I remember.
Bernard
** If you see someone without a smile, give em one of yours :) **