>There're 4 variables. When function1 runs variables var1, var2 still exist but are invisible to the function1. I don't know if system variables are counted toward this VFP maximum.
>VFP keeps all variables in the internal Name Table array in the memory. The MVCOUNT specifies the number of entries in this array.
Keep in mind, though, that the Name Table Index includes objects such as forms and controls. The Name Table Index includes more than just user-defined variables.
Mike Stewart