Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hard? Adding one nesting level to this
Message
From
02/09/2003 10:43:09
 
 
To
02/09/2003 10:40:38
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00825315
Message ID:
00825317
Views:
18
************correction, thanks :

lnMaxLineas = memlines(valdincode.codegen)

For nCnt = 1 to lnMaxLineas
lcComando = alltrim(UPPER(mline(valdincode.codegen,nCnt)))

Do Case
Case inlist(ALLT(lcComando),"{DO WHILE}","{IF}")
nCnt = nCnt +1
lcExpr =alltrim(UPPER(mline(valdincode.codegen,nCnt)))
nCnt = nCnt +1
nCnt2 = nCnt
Do WHILE (&lcExpr)
lcComando= alltrim(UPPER(mline(valdincode.codegen,nCnt)))
&lcComando
nCnt = nCnt+1
IF inlist(allt(mline(valdincode.codegen,nCnt)),"ENDIF","ENDDO")
nCnt=nCnt2
ENDIF
Enddo
endcase
endfor
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform