>Yes - I'm aware of the '0' and '1' parms - but the help for Program(nLevel) states:
>
>"nLevel Specifies how many program levels back the program name is to be found. This parameter can range from 0 to the program nesting depth. A program can execute another program which can execute another program, and so on. Programs may be nested to 128 levels."
>
>"1" and "0" are special cases that return the "top level" calling program, but a parameter of "2" should give me the previous calling method - "3" the previous one to that - and so on - and as I said, it doesn't seem to work.
>
>Ken
The Help - well, I don't care what it says. Actually, the parameter denotes the order in which the routine was called, so prog(0) or prog(1) returns the master program, prog(2) the first called one, ... and prog(n) returns the name of the routine called from prog(n-1). It always worked this way (since sys(16) in FoxPlus) and, yes, the help was always somewhat confusing on the subject.