Print specific values from dictionary with a specific key name
Siten0308 - Jun 20 2019 01:43 PM
How to make code run differently depending on the platform it is running on?
xarzu - Apr 05 2019 09:17 AM
How do I set a breakpoint in an attached process in visual studio
xarzu - Apr 04 2019 11:47 AM
Recent Blog Entries
Recent Status Updates
- Managed C++
- Visual Basic 4 / 5 / 6
- linked list
- hello world
Ask Me: CommittedC0der
Posted 24 January 2011 - 06:14 PM
Posted 15 June 2011 - 08:19 PM
I'm doing a project for school and my project requires me to set a drop box for the Resistive values of the Gold and Silver Tolerance Bands of a 4-Band resistor. Everything's fine, but how to I set my codes so that only the digits 5 and 10 appear in my Label?
Normally, the code would read " RandomValue = Anne.Next(101, 998); ", right?
But now if I only want 5 AND 10, not 5 TO 10, then how do I code it?
Thanks so much in advance!
Posted 17 June 2011 - 05:25 PM
if(var = 1)
do w/e for 5
else if(var = 2)
do w/e for 10
But if you ask in the correct forum you will probably get some better answers.
Nothing of eternal significance happens besides prayer.