Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help with recursive function
Message
From
04/12/2003 14:29:31
 
 
To
03/12/2003 19:30:10
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00855676
Message ID:
00856032
Views:
16
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform