Quantcast
Channel: Project Customization and Programming forum
Viewing all articles
Browse latest Browse all 5347

Need help with some code please [VS2013Express - C#]

$
0
0

Hello, I am building a database program for collectable cards. The base template is on Magic the Gathering.

To get to the point, I have a comboBox that has the names and codes for every tournament legal set. I have an idea of how I want to code the "Select Set" button so that the card set you choose/select seeds two textboxes.

The syntax I see, but doesn't work, goes something along these lines...the classic If-Than statement with and AND to affect the second textBox.

if comboBox1.selected = "LEA - Limited Edition Alpha" then textBox1.text = "LEA" and textBox2.text = "1993";

When I type this into the button click event I get all kinds of errors that I can't figure out to fix other than comment out the whole line. Any help at all would be greatly appreciated!



Viewing all articles
Browse latest Browse all 5347

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>