How about the following?
LOCAL nLevel, cCallingChain
nLevel = 1
cCallingChain = ""
DO WHILE NOT EMPTY (PROGRAM())
cCallingChain = cCallingChain + PROGRAM(nLevel) + "; "
nLevel = nLevel + 1
ENDDO
cCallingChain = LEFT (cCallingChain, LEN (cCallingChain) - 2)
In VFP6, you can use PROGRAM (-1) to get the depth of the calling chain, and avoid using the test for empty.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only