.:`=-~rANdOm~`-=:.

Tech Lounge => Programming => Topic started by: bigboymar on May 31, 2010, 09:53:25 PM

Title: Standard BASIC VB IF/THEN
Post by: bigboymar on May 31, 2010, 09:53:25 PM
Hello everyone, right now you are going to learn the "BASIC" if then statement to make a box talk!
To do this you will need:
1 ListBox
1 TextBox
1 Button
1 Edited listbox item's!


First start out with this code by double clicking the listbox:

if listbox1.text = "PUTITEMNAMEHERE" Then
textbox1.text = "PUTITEMNAMEHEREDIFFRENT"
end if

Right there is a basic if/then meaning if the listbox1 has selected PUTITEMNAMEHERE it will go to the Textbox with a different name, Most used in translators!