Доброго дня.
Есть такой код:
Можно ли его как-то сократить?
Есть такой код:
Код:
if GUICtrlRead($PButton[5]) = "1" then
;код5
endif
if GUICtrlRead($PButton[6]) = "1" then
;код6
endif
; .....................
if GUICtrlRead($PButton[30]) = "1" then
;код30
endif
if GUICtrlRead($PButton[5]) = "2" then
;код5
endif
if GUICtrlRead($PButton[6]) = "2" then
;код6
endif
; .....................
if GUICtrlRead($PButton[30]) = "2" then
;код30
endif
; .....................
if GUICtrlRead($PButton[5]) = "30" then
;код5
endif
if GUICtrlRead($PButton[6]) = "30" then
;код6
endif
; .....................
if GUICtrlRead($PButton[30]) = "30" then
;код30
endif
Можно ли его как-то сократить?