Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help with recursive function
Message
De
04/12/2003 14:29:31
 
 
À
03/12/2003 19:30:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00855676
Message ID:
00856032
Vues:
15
local nLevel
update (m.cAlias) set LEVEL = 1 where empty(PARENT)
nLevel = 1
do while _tally > 0
   update (m.cAlias) ;
      set LEVEL = m.nLevel + 1 ;
      where PARENT in ( ;
         select DEPARTMENT from (m.cAlias) where LEVEL == m.nLevel  )
   nLevel = m.nLevel + 1
enddo
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform