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

Popular posts from this blog

Motherboard replacement

Cannot create Full Text Search catalog after upgrading to V12 - Database is not fully started up or it is not in an ONLINE state

Remote Desktop App - Error 0x207 or 0x607