Random Stuff
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Latest topics
» Hacxing...
Helper 1: Variables. Icon_minitimeWed Dec 31, 2008 10:03 pm by Seanshoots

» Smiley Wars! :D
Helper 1: Variables. Icon_minitimeThu Dec 18, 2008 10:44 pm by Seanshoots

» plzz plzz sign up
Helper 1: Variables. Icon_minitimeSat Nov 29, 2008 5:59 pm by spikester145

» Bye - Bye
Helper 1: Variables. Icon_minitimeSat Nov 29, 2008 2:15 pm by spikester145

» i really belived in this site
Helper 1: Variables. Icon_minitimeFri Nov 28, 2008 5:46 pm by Bob

» Need an Banner
Helper 1: Variables. Icon_minitimeWed Oct 29, 2008 11:03 pm by Bob

» Over?
Helper 1: Variables. Icon_minitimeThu Oct 16, 2008 7:51 pm by Seanshoots

» Meet the staff.
Helper 1: Variables. Icon_minitimeMon Sep 01, 2008 10:29 am by Bob

» GM Applications.
Helper 1: Variables. Icon_minitimeFri Aug 29, 2008 9:41 pm by Bob

» Guess What. Im Back!!!!!
Helper 1: Variables. Icon_minitimeSun Aug 24, 2008 1:09 pm by Bob

» Tell me what you think
Helper 1: Variables. Icon_minitimeSun Aug 24, 2008 1:08 pm by Bob

» Updates!
Helper 1: Variables. Icon_minitimeSat Aug 23, 2008 6:32 pm by Bob

» The Third
Helper 1: Variables. Icon_minitimeWed Aug 20, 2008 5:52 pm by Bob

» The Excuse Game!
Helper 1: Variables. Icon_minitimeMon Aug 18, 2008 6:25 pm by Bob

» the server as died? Oo
Helper 1: Variables. Icon_minitimeMon Jul 28, 2008 6:18 pm by Bob

Who is online?
In total there are 2 users online :: 0 Registered, 0 Hidden and 2 Guests

None

[ View the whole list ]


Most users ever online was 72 on Sun Apr 11, 2021 8:50 pm
Statistics
We have 20 registered users
The newest registered user is alodivivi

Our users have posted a total of 726 messages in 75 subjects
Affiliates
This section is open for advertisments. Email headshotclan9994@aol.com for information.
 
GuestBook
Click here to let us know what you think of are website while you wait to sign up. Also if you have any problems signing up you can ask here. View my Guestbook
Free Guestbooks by Bravenet.com
Counter

Helper 1: Variables.

Go down

Helper 1: Variables. Empty Helper 1: Variables.

Post by Seanshoots Mon Jun 02, 2008 11:15 pm

This is a Important part of Visual Basic; variables are very useful, like defining a name, etc...

Here, we will make an easy-to-understand program that will use variables.
(When is say 'put in this code' dont erase any code that is there, just put it inbetween!)


First, make a standard EXE.
Enlarge the window a bit, too.
(Drag Corner.)
Make a textbox anywhere on the form.
It can be called anything, it doesnt matter.
Now, make a button. Just call it "Message."
*CODE TIME!*
Double click the button, a code window should popup.
In it, type:
--CODE--
Dim message As String
message = text1.text
seanshoots = MsgBox(message, vbOkOnly)

--END CODE--
([CODE] IS NOT WORKING! Fix Please.)
What this is doing, is telling it that the word 'message' means the text in the textbox.
A variable is like calling someone a name, when someone says their name, you know who or what they are.
Example:
clown
Name = Clown
Therefor, when someone says 'Clown', you would refer to that picture.

So, now press F5.
Now, when you type something in the textbox and press the button, it will popup in the messagebox.
Cool, ey? (Im canadian! Smile )


Last edited by Bob on Tue Jun 03, 2008 12:22 am; edited 2 times in total (Reason for editing : COLORZ!)
Seanshoots
Seanshoots
RandomMS Owner
RandomMS Owner

Number of posts : 210
Age : 28
Location : Vancouver, BC. Go Canada!
Registration date : 2008-05-24

Character sheet
Bob's Field:

http://seanspsppimping.blogspot.com

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum