| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Feb 2002
Location: Toronto
Posts: 13
|
Hi everybody,
Here I have a situation: I have 3 different combo boxes with first one labeled from A to C, second one D to F and the third one G to I (these are the content of my combo boxes). I also have a CheckBox which would return value "20" on True and "0" on false. Now, I'd like to assign a number to each one of the above words as follow: A=1 / B=2 / C=3 / D=4 / E=5 / F=6 / G=7 / H=8 / I=9 I need such program that calculates the sum of the numbers assigned to each of the chosen alphabet. Ex: Combo #1=A value=1 Combo #2=E value=5 Combo #3=I value=9 CheckBox=True=20 -------------------------- Out put must be" 35 " If you are out there and got some idea please share it with me. Love you all Dina |
|
|
|
|
|
#2 |
|
Registered User
Join Date: Feb 2002
Location: Toronto
Posts: 13
|
Hi everybody,
Here I have a situation: I have 3 different combo boxes with first one labeled from A to C, second one D to F and the third one G to I (these are the content of my combo boxes). I also have a CheckBox which would return value "20" on True and "0" on false. Now, I'd like to assign a number to each one of the above words as follow: A=1 / B=2 / C=3 / D=4 / E=5 / F=6 / G=7 / H=8 / I=9 I need such program that calculates the sum of the numbers assigned to each of the chosen alphabet. Ex: Combo #1=A value=1 Combo #2=E value=5 Combo #3=I value=9 CheckBox=True=20 -------------------------- Out put must be" 35 " If you are out there and got some idea please share it with me. Love you all Dina |
|
|
|
|
|
|
|
|
#3 |
|
Addicted To FLASH
|
hey Dina, I donno what r u doing exactly but let me try to halp as what I've got.
U can assing a variable to each letter u gave to your combo boxes, and give each one a value of 0 so u have 9 variables. then within the script of every combo boxes u add the number u want to the variable, i.e in youe example Ex: Combo #1=A value=1 variableA1 = 1 Combo #2=E value=5 variableE2 = 5 Combo #3=I value=9 variableI3 = 9 CheckBox=True=20 -------------------------- Out put must be" 35 " variableSum = 20 + variableA1 +variableE2 +variableI3 this is a way, or if u want just to calculate the output only, u may make one variable with a value of "20" the with each chosec from the combo boxes u add a spacified value to it, then make a button that shows that value to a text box Hope that helps
__________________
â€* GOD Is Near â€* Questions Don't PM for Questions An eye for an eye, make the whole world blind _____________________________________________GHANDI Last edited by farafiro; 06-27-2002 at 06:26 AM.. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Changing the selected item in a combobox | mcmcom | Components | 3 | 07-28-2006 12:42 PM |
| ComboBox data trigger question | frank grimes | Components | 0 | 02-15-2005 09:24 PM |
| [mx] combobox, focus & keypad arrows | chartrandi | Components | 0 | 03-31-2004 12:12 PM |