Tech Lounge > Programming

Standard BASIC VB IF/THEN

(1/1)

bigboymar:
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!

Navigation

[0] Message Index

Go to full version