>Hi Everyone:
>
>Does anyone have a good site that gives a basic description of using variables in foxpro (specifically scope). i don't have a good understanding of it and have often had it happen where the variables are not available to other parts of my code. therefore, since i'm not building apps for broad distribution but only for my company, i use public variables. i have heard that this is a big no no (especially when computers weren't as fast as they are now), but i don't run into problems but want to be able to stop it before i do.
>
>i remember also a website that has a video describing scope but can't find it. any suggestions? thanks,
>
>paul
Paul,
It's easy to understand scope if you use only one scope for your variables:
local myVariable
local array myArray[1]
The scope is local to the routine.
Cetin