checkboxes if else - newbie
checkboxes if else - newbie
(OP)
hello,
first of all i'm a newbie in vb and extra! completely!
i can't provide any code to show but only can describe what i want to do (at least);
i want to chose from a list of checkboxes different options to capture screen positions and then write them into a file.
so the problem for me is first of all, how can i read the
value of the checkboxes (0,1), then i guess i have to make
various cases/if then-functions but there is the problem how to do it, for example if checkbox1 and checkbox3 (of 4 checkboxes) are chosen, i want that the position defined to checkbox1 and 3 will be captured of the extra! screen and the values get written to a file with the write-command.
hope i'm clear
thanks a lot
first of all i'm a newbie in vb and extra! completely!
i can't provide any code to show but only can describe what i want to do (at least);
i want to chose from a list of checkboxes different options to capture screen positions and then write them into a file.
so the problem for me is first of all, how can i read the
value of the checkboxes (0,1), then i guess i have to make
various cases/if then-functions but there is the problem how to do it, for example if checkbox1 and checkbox3 (of 4 checkboxes) are chosen, i want that the position defined to checkbox1 and 3 will be captured of the extra! screen and the values get written to a file with the write-command.
hope i'm clear
thanks a lot
RE: checkboxes if else - newbie
Hi,
So you have FOUR checkboxes. That means that you have a possible 8 states: 0 thru 7...
000
001
010
011
100
101
110
111
Yes?
So would you not have a CASE for each?
Skip,
Just traded in my old subtlety...
for a NUANCE!
RE: checkboxes if else - newbie
i wanted to make it simple, that's why i said 4 checkboxes, but i have around 30 checkboxes.
creating the check-box-list is also not the problem, but i can't find anywhere the function to read the field-value of the checkbox, cause something like
if checkbox1.value = 1 etc...
end if
does not work. that's my first and very elementary problem;
the second one is that i want to make a loop (case), that goes through the values of the buttons and when there is a 1 it captures a value at the screen (capturing itself is not the problem) and adds the value to a write command for writing it after the loop to a file;
my aim is to input data from a .csv-file (account numbers) to let with a checkbox-list people (me) chose what kind of values they want from these account-numbers, and then write the captures values to a csv-file again.
thanks a lot!