objets avec noms variables
Bonjour,
je suis confronté à un problème qui n'existe pas en php..
Est il possible de réduire ça :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| Select Case input(0)
Case 1
lbl_pgbar_1_act.Text = input(1)
lbl_pgbar_1_progress.Text = input(3).ToString & "/" & input(2).ToString
pgbar_1.Maximum = input(2)
pgbar_1.Value = input(3)
Case 2
lbl_pgbar_2_act.Text = input(1)
lbl_pgbar_2_progress.Text = input(3) & "/" & input(2)
pgbar_2.Maximum = input(2)
pgbar_2.Value = input(3)
...
...
...
End Select |
en quelquechose comme ça ?
Code:
1 2 3 4
| lbl_pgbar_input(0)_act.Text = input(1)
lbl_pgbar_input(0)_progress.Text = input(3).ToString & "/" & input(2).ToString
pgbar_input(0).Maximum = input(2)
pgbar_input(0).Value = input(3) |
Si oui, comment ? et est-ce consommateur de ressources (plus long à exécuter) ?
Merci d'avance :)