Oui bien sur, mais j'ai plusieurs conditions et avec VB le Select case est plus pratique.
Conditions :
If x >5 and x <10
If x >10 and x <15
If x >15 and x <20
If x >20 and x <25
If x >25 and x <30
etc..
Tant pis je vais faire avec If ... Then...
Dim temp As Double
temp = Floor (x/5)
Select temp
Case 0 ' x was less than 5
Label1.Text = "Plus petit que 5"
Case 1 ' x was between 5 and 10
Label1.Text = "Plus grand que 5"
End select
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.