Internal commands ( if the function is not prefixed with m.) and base classes, then User-defined class definitions cached in memory in the order they were loaded, so long as the class definitions are still along SET CLASSLIB or SET PROCEDURE, then If in VFP 8, a collection's default method, for example myCollection(), then MyArray(n) array memory variable in scope. Functions and class definitions in the current .PRG, then Class definitions along SET CLASSLIB, then Functions and class definitions along SET PROCEDURE, then Functions and class definitions in the stored procedures of the current SET DATABASE TO, then Functions and class definitions in the execution chain (call stack), then Functions named for files bound in the app/exe, then Functions named for files in the SET DEFAULT (local) directory, then Functions named for files out along SET PATH. COM classes in the OLE registry if SET OLEOBJECT is ON.the function in set('procedure') would be called before database procedure.