Jump to content
Sign in to follow this  
cbs

Vbasic simple request

Recommended Posts

Dear Users,

 

I have a combobox in the form. Combobox Values are  3, 4 and 5 values. When I chose the 3 in the combobox, I want to list on ABC's three combinations.

 

A B C AB AC BC ABC

 

 

When I chose the 4 in the combobox, I want to list on ABCD's four combinations.

 

A B C D AB AC AD BC BD CD ABC ACD ABD BCD ABCD

 

How can I do?

 

 

 

  • Like 1

Share this post


Link to post
Share on other sites

on click event

 

you can code it like this 

 

if combobox.text = 3 then 

   listtext1.text = "A B C AB AC BC ABC"

elseif combobox.text = 4 then

   listtext1.text = "A B C D AB AC AD BC BD CD ABC ACD ABD BCD ABCD"

endif

Share this post


Link to post
Share on other sites

Dear rahmansunbeam,

 

I look at codes but I do not solve it. Would you please write the codes in vbasic form?

 

Thank you very much for your helps. Abdurrahman

Share this post


Link to post
Share on other sites

what I wrote is just a sample coding it doesnt mean it will work in your platform. the idea works on different VB platform the syntax is the only difference. there are a bunch of sample algorithms that produces that output. do a google. 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.