j'aimerais savoir comment traduire l'instruction
On Var goto lgn1,lgn2
On Var Goto ...
En QBasic (si mes souvenirs sont bons) cela permet de brancher en fonction de la valeur de la variable
Select Case Var Case 11 Goto Toto Case 4012 Goto monLabel Case 5 Goto CodesSources End Select
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question... 1650 NI=0 ' ===> donc N = 0 1660 ON IP goto 1670,1680 1670 if NI<=0 goto 2500 ' ===>> risque pas d'être # 0 ! ===>> condition inutile ! ...
IP = 1 IT = 0 For j = 1 To N P2(j) = P(j) Next j LS = 0 KC = 0 If Not (IP = 1 And NI <= 0) Then ' 1660 For j = 1 To N If P1(j) > LS Then If IP = 1 Then ' 1700 If I2(j) <> 0 Then KC = j LS = P2(j) End If Else ' 1740 If I2(j) > LS Then KC = j LS = P2(j) End If End If End If Next j End If ' 2500 If IP - 1 > 0 Then ' ... End If