Answered by:
public,local and private variables

Question
-
Answers
-
You may check:
http://fox.wikis.com/wc.dll?Wiki~PublicAndPrivateVariables
http://www.alvechurchdata.co.uk/hints-and-tips/fox101var.html
http://books.google.com/books?id=iF97jVKcqhEC&pg=PA578&lpg=PA578&dq=vfp+private,local+and+public+variables&source=bl&ots=6tvX0GxzuY&sig=FZNsaXAx5yh50BvM0hqA9rPimzs&hl=en&ei=Ei4xS_P9KYm0tgfmyYH-CA&sa=X&oi=book_result&ct=result&resnum=6&ved=0CBcQ6AEwBQ#v=onepage&q=vfp%20private%2Clocal%20and%20public%20variables&f=false
dni- Marked as answer by Little Fox Wednesday, December 23, 2009 6:24 PM
-
In addition to the references dni gave you, the easy rule to remember is that all variables should be local unless you have a specific reason to use a different kind. There's almost never a reason to use public variables; they're a leftover from the early days of FoxPro (actually FoxBase).
Tamar- Marked as answer by Little Fox Wednesday, December 23, 2009 6:24 PM
-
I have an application right now which uses these public variables (and calls them lcSomething) all over the place. Such a nightmare...
Premature optimization is the root of all evil in programming. (c) by Donald Knuth
Naomi Nosonovsky, Sr. Programmer-Analyst
My blog- Marked as answer by Little Fox Wednesday, December 23, 2009 6:24 PM
All replies
-
You may check:
http://fox.wikis.com/wc.dll?Wiki~PublicAndPrivateVariables
http://www.alvechurchdata.co.uk/hints-and-tips/fox101var.html
http://books.google.com/books?id=iF97jVKcqhEC&pg=PA578&lpg=PA578&dq=vfp+private,local+and+public+variables&source=bl&ots=6tvX0GxzuY&sig=FZNsaXAx5yh50BvM0hqA9rPimzs&hl=en&ei=Ei4xS_P9KYm0tgfmyYH-CA&sa=X&oi=book_result&ct=result&resnum=6&ved=0CBcQ6AEwBQ#v=onepage&q=vfp%20private%2Clocal%20and%20public%20variables&f=false
dni- Marked as answer by Little Fox Wednesday, December 23, 2009 6:24 PM
-
In addition to the references dni gave you, the easy rule to remember is that all variables should be local unless you have a specific reason to use a different kind. There's almost never a reason to use public variables; they're a leftover from the early days of FoxPro (actually FoxBase).
Tamar- Marked as answer by Little Fox Wednesday, December 23, 2009 6:24 PM
-
I have an application right now which uses these public variables (and calls them lcSomething) all over the place. Such a nightmare...
Premature optimization is the root of all evil in programming. (c) by Donald Knuth
Naomi Nosonovsky, Sr. Programmer-Analyst
My blog- Marked as answer by Little Fox Wednesday, December 23, 2009 6:24 PM
-