0..7 | ForEach
i have several checkboxes on form: $checkbox0, $checkbox1 .. $checkbox7
i tried use 0..7 | foreach access them, $checkbox$_.checked, not working. there way it? thanks.
(get-variable checkbox[0-7]).value.checked
[string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "
Windows Server > Windows PowerShell
Comments
Post a Comment