ok with the array...
what i did was copyed and pasted a checkbox .. 3 times.. so now i had like chkbox(0), chkbox(1), chkbox(2), chkbox(3)..... ok the (#) mean it is a array.. im not to much with technical stuff i just know how to do it hehe.. but this is made for an easy method of changing all the properties at once... ill give and example..
example.. ok i want to change the value of all the check boxes.. an dill show you how the array comes in hand for large amount of arrays..
without an array...
chkbox1.value = vbChecked
chkbox2.value = vbChecked
chkbox3.value = vbChecked
chkbox4.value = vbChecked
ok thats not to bad looking correct.. well if you change the names.. that would be alot of typing..
ie.
filecheckc.value...
harddrivechk.value...
ok well i dont wanna type all that out but im sure you can see where that would get tedious...
ok that was with out a array... so in those you would have to write out each control and stuff and if you have alot going on that can take some time... now here it is with an array.... note... arrays start with (0) not (1)...
for i = 0 to 3
chkbox([bold]i[/bold]).value = vbChecked
next i
ok what that is doing.. is its going to loop aroudn there.. replacing the i with a number... that number will = the array index... and as you can see.. just for 4 arrays it is one line shorter.. so imagine.. 15? 20? yeah arrays can get up there.. i have a calculator project showing off some array things and case select stuff if you would like to see it.. here ill give and example of 15.. just to show how it would be done though im sure you already know..
for i = 0 to [bold]14[/bold] 'this goes upto 15..
chkbox([bold]i[/bold]).value = vbChecked
next i
ok now ill explain [bold]select case[/bold].. and then ill put both methods together...
ok this is also a BIG time saver.. i LOVE my select case's..
well this would be used to replace the 'if' 'then' command..
haha like the array and now with this when i am tryign to explain i forget how or why i would use them haha... ok ill give you and example with something you could type into a text box....
example: i am not sure why you would want to do this.. im pulling this type of example from the way i work with winsock and sorting out the incoming data... but ill make it so the text box is the "incoming data" here we go...
ok this is without select case... this would perhaps be put in a combo peraps to see if the right words were entered.. maybe a secret area or easter egg a log in idea who knows?
ok here i go...
if text1 = "test1" then
label1 = "You may enter"
end if
if text1 = "i dont fly high" then
label1 = "in the sky i will be forever"
end if
if text1 = "cows drink milk"
label1 = "eat more chicken"
end if
ok once again im lazy and dont want to type out tons of stuff hehe once again that would be put in a chat command button... select case is used to check the value of somehting for many diffrent answers as the abod did but with outall the extra writing... here is example of the about...
select case [bold]text1[/bold]
'as you see select case is lettign you knwo your startign the select case... and text one is basically saying 'if text1 = ' ....
[bold]case[/bold] "test1" 'case i like saying ='s
label1 = "You may enter" 'then what happens goes here..
[bold]case[/bold] "i dont fly high" then
label1 = "in the sky i will be forever"
[bold]case[/bold] "cows drink milk"
label1 = "eat more chicken"
end select 'this closes the select case...
arg i gtg ill finish up the rest later if you need it an example of them together.. hope htis helps..
in the begining man created code.
in the end code will create man.
clones are coming only matter of time.
examples?