Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
System dump
Message
From
13/07/2000 09:26:47
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00391422
Message ID:
00391742
Views:
16
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
Map
View

Click here to load this message in the networking platform