×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

checkboxes if else - newbie

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

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,

glassesJust traded in my old subtlety...
for a NUANCE!tongue

RE: checkboxes if else - newbie

(OP)
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!

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close