1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
| Function incre_lac(monchamp As Integer)
Dim mavariable As String
Dim a, b, c, d, e, f, g, h As Integer
Select Case monchamp
Case "Aydat"
mavariable = "1"
a = a + 1
incre_lac = mavariable & "_" & Str(a)
Case "Bordes"
mavariable = "2"
b = b + 1
incre_lac = mavariable & "_" & Str(b)
Case "Bouchet"
mavariable = "3"
c = c + 1
incre_lac = mavariable & "_" & Str(c)
Case "Bourdouze"
mavariable = "4"
d = d + 1
incre_lac = mavariable & "_" & Str(d)
Case "Cassière"
mavariable = "5"
e = e + 1
incre_lac = mavariable & "_" & Str(e)
Case "Chambon"
mavariable = "6"
f = f + 1
incre_lac = mavariable & "_" & Str(f)
Case "Issarlès"
mavariable = "7"
g = g + 1
incre_lac = mavariable & "_" & Str(g)
Case "Montcineyre"
mavariable = "11"
h = h + 1
incre_lac = mavariable & "_" & Str(h)
Case "Pavin"
mavariable = "12"
i = i + 1
incre_lac = mavariable & "_" & Str(i)
End select
End Function |
Partager