Combo box question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ifeelika2eez
    New Member
    • Jan 2009
    • 2

    Combo box question

    Hi All..i am just learning vb6, i have made a simple project to calculate the total sum from entering input as numbers in several input fields and a calculate button to show the sum. Now i want to use combo boxes to do the same thing,
    eg: combobox1 would have ( red,blue,green ) and then assign a value to the words ( red=5,blue=3 green=1) and the same with combobox2, combobox3 etc. so that if i select (red from box 1, blue from box 2, green from box 3) then press calculate button it shows the sum of 9 in the total field. I can't seem to find how to do this anywhere, is it possible? if anyone could help me out a little or steer me in the right direction it would be helpful and appreciated...T hanks
  • lotus18
    Contributor
    • Nov 2007
    • 865

    #2
    Hi

    An if-else or select statement will solve this problem.


    Rey Sean

    Comment

    • ifeelika2eez
      New Member
      • Jan 2009
      • 2

      #3
      thankyou for your reply lotus18

      Comment

      Working...