checkbox - Checkboxes from "0" to "1" in a string -


i have program when checkboxes checked, code behind changes 0 1. code:

 dim string = "000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"      if checkbox1.checked = true          a(0) = "1"         = left(a, 1) + right(a, 89)         msgbox(a)      else         msgbox("wrong!")      end if 

apparently a(0)="1" wrong.

this code 1 checkbox, if have 90 checkboxes, how code it?


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -