Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
System dump
Message
De
13/07/2000 09:26:47
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00391422
Message ID:
00391742
Vues:
15
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform