Click here to Skip to main content
15,890,186 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
combobox1.text * textbox1.text * Random(0.177-0.325) * (1 + combobox2.text * 0.05) * (1 + combobox3.text * 0.3)

Combobox items are numbers 0-25, for example.

What I have tried:

It returns a 0 every time... I am not sure why. I am not good at this stuff.
Posted
Updated 26-May-18 18:12pm
Comments
Patrice T 27-May-18 0:07am    
Show some real code, please.

1 solution

You should convert the string combobox1.text to a double first:

Convert.ToDouble Method (String) (System)[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900