Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

checkboxes if else - newbie

Status
Not open for further replies.

flood777

Technical User
Oct 27, 2008
2
BE
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
 




Hi,

So you have FOUR checkboxes. That means that you have a possible 8 states: 0 thru 7...
[tt]
000
001
010
011
100
101
110
111
[/tt]
Yes?

So would you not have a CASE for each?

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
yes, but my problem is not the logic behind it, it's the way how to program it :(
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!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top