eXophase


Reply
 
Thread Tools
  #1  
Old 06-09-2007, 09:29 PM
Darkchild's Avatar
Darkchild Darkchild is offline
Staff & Ds Dev
 
Join Date: Apr 2007
Location: Portugal
Posts: 2,823
Darkchild is a splendid one to beholdDarkchild is a splendid one to beholdDarkchild is a splendid one to beholdDarkchild is a splendid one to beholdDarkchild is a splendid one to beholdDarkchild is a splendid one to beholdDarkchild is a splendid one to behold
Send a message via MSN to Darkchild
[vb6] Tutorial 1

Darkchild's Visual Basic tutorial lesson 1
----------------------------------------------------------------------------------------------------------------------


First thing in programming is...you have to know variables!

Q: What are variables? Simple!

For example...Have you ever used letters in math (like X or Y)? X and Y are variables, they can hold ANY number, but it is you or the program who have to give them the number to hold...
Sub Question : Where is this data stored in?

Simple! It's stored in your Ram!

Now, there are lots and lots of types of variables, but for now, I'm gonna teach you the simpler ones that you will need:
  • Integer
  • String
  • Boolean
  • Byte
Now what is the difference between these variables? Simple!
  • Integer uses whole numbers (you can't use 0.01 as an integer value)
  • String uses Numbers, letters, special characters like (@£§€)
  • Boolean uses only two values, true and false
  • Byte uses numbers from 0 to 255
Simple? Good!

Now how to declare these variables (because, they aren't made by themselves!)

Code:
Dim name_of_variable as type
Where "name_of_variable" is the name of the variable you are declaring
Sub Question : Can I put ANY characters in my variables?

Not all... for example you CANNOT use:
  1. Numbers at the beginning of the variable's name
  2. Special Characters
  3. Names of variables that were already declared
at the beginning of the variable's name or else you will have a huge error!

Where Type, you write ONE those 4 types of variables that I told you about.
You can have pretty much as many variables you want, and any amount of variables of the same type you want.

Now How to declare various variables without having to write "DIM" in another line

Code:
Dim var1, var2, var3 as integer
I think this is self explanatory
More lessons later! Post your questions here if you have any!

You can download Visual Basic here (although it is .NET, the basics would be...the same).

__________________

Last edited by EvilSeph; 11-06-2007 at 10:57 PM..
Reply With Quote
  #2  
Old 06-10-2007, 09:20 PM
bwalker bwalker is offline
Senior Member
 
Join Date: May 2007
Posts: 220
bwalker is on a distinguished road
Send a message via AIM to bwalker
so "Dim var1, var2, var3 as byte" declares those thre variables as byte variable or do i have this all wrong lol
__________________
I like Video Games

I like cookies yes i do
Reply With Quote
Alt
Sponsor
 
  #3  
Old 06-10-2007, 09:34 PM
Darkchild's Avatar
Darkchild Darkchild is offline
Staff & Ds Dev
 
Join Date: Apr 2007
Location: Portugal
Posts: 2,823
Darkchild is a splendid one to beholdDarkchild is a splendid one to beholdDarkchild is a splendid one to beholdDarkchild is a splendid one to beholdDarkchild is a splendid one to beholdDarkchild is a splendid one to beholdDarkchild is a splendid one to behold
Send a message via MSN to Darkchild
yes, that declares them all as Bytes
it is correct =)
__________________
Reply With Quote
  #4  
Old 06-10-2007, 11:47 PM
bwalker bwalker is offline
Senior Member
 
Join Date: May 2007
Posts: 220
bwalker is on a distinguished road
Send a message via AIM to bwalker
sweet then your tut 1 is a sucess good job i look foward to more
__________________
I like Video Games

I like cookies yes i do
Reply With Quote
  #5  
Old 06-14-2007, 10:01 PM
Darkchild's Avatar
Darkchild Darkchild is offline
Staff & Ds Dev
 
Join Date: Apr 2007
Location: Portugal
Posts: 2,823
Darkchild is a splendid one to beholdDarkchild is a splendid one to beholdDarkchild is a splendid one to beholdDarkchild is a splendid one to beholdDarkchild is a splendid one to beholdDarkchild is a splendid one to beholdDarkchild is a splendid one to behold
Send a message via MSN to Darkchild
next tuto I'll show you the IDE and how to work with it, for future tutorials
__________________
Reply With Quote
  #6  
Old 08-09-2007, 01:38 PM
roe-ur-boat's Avatar
roe-ur-boat roe-ur-boat is offline
Professional Troll since defeating PR0fessor Burnt
 
Join Date: Mar 2007
Location: Ireland
Posts: 1,355
roe-ur-boat is a splendid one to beholdroe-ur-boat is a splendid one to beholdroe-ur-boat is a splendid one to beholdroe-ur-boat is a splendid one to beholdroe-ur-boat is a splendid one to beholdroe-ur-boat is a splendid one to beholdroe-ur-boat is a splendid one to beholdroe-ur-boat is a splendid one to behold
Send a message via MSN to roe-ur-boat Send a message via Skype™ to roe-ur-boat
What do I need to start developing in VB6
__________________
Reply With Quote
  #7  
Old 08-09-2007, 07:40 PM
Darkchild's Avatar
Darkchild Darkchild is offline
Staff & Ds Dev
 
Join Date: Apr 2007
Location: Portugal
Posts: 2,823
Darkchild is a splendid one to beholdDarkchild is a splendid one to beholdDarkchild is a splendid one to beholdDarkchild is a splendid one to beholdDarkchild is a splendid one to beholdDarkchild is a splendid one to beholdDarkchild is a splendid one to behold
Send a message via MSN to Darkchild
You need Visual Studio 6
__________________
Reply With Quote
  #8  
Old 08-09-2007, 07:41 PM
roe-ur-boat's Avatar
roe-ur-boat roe-ur-boat is offline
Professional Troll since defeating PR0fessor Burnt
 
Join Date: Mar 2007
Location: Ireland
Posts: 1,355
roe-ur-boat is a splendid one to beholdroe-ur-boat is a splendid one to beholdroe-ur-boat is a splendid one to beholdroe-ur-boat is a splendid one to beholdroe-ur-boat is a splendid one to beholdroe-ur-boat is a splendid one to beholdroe-ur-boat is a splendid one to beholdroe-ur-boat is a splendid one to behold
Send a message via MSN to roe-ur-boat Send a message via Skype™ to roe-ur-boat
ok, you told me the name before, I just forgot
__________________
Reply With Quote
  #9  
Old 08-09-2007, 11:17 PM
Darkchild's Avatar
Darkchild Darkchild is offline
Staff & Ds Dev
 
Join Date: Apr 2007
Location: Portugal
Posts: 2,823
Darkchild is a splendid one to beholdDarkchild is a splendid one to beholdDarkchild is a splendid one to beholdDarkchild is a splendid one to beholdDarkchild is a splendid one to beholdDarkchild is a splendid one to beholdDarkchild is a splendid one to behold
Send a message via MSN to Darkchild
no prob, but..WHERE to get it...I cannot say :P
__________________
Reply With Quote
  #10  
Old 08-10-2007, 03:30 AM
Junit
Guest
 
Posts: n/a
The microsoft store
Reply With Quote
 Reply

  • Submit Thread to Digg Digg
  • Submit Thread to del.icio.us del.icio.us
  • Submit Thread to StumbleUpon StumbleUpon
  • Submit Thread to Google Google
  • Bookmarks


    Thread Tools

     
    Similar Threads
    Thread Author Forum Replies Last Post
    new tutorial Acerthief PC Discussion 10 08-21-2007 08:09 PM
    [VB6] Blockeia-o! Darkchild PC Discussion 5 06-27-2007 02:45 AM
    Tutorial section roe-ur-boat Feedback 5 04-22-2007 05:16 AM
    PSP Dismantle, Tear Apart Tutorial Video (COOL!) tingsin86 PSP Help Center 4 04-20-2007 05:13 AM
    OE-A/B Install Tutorial by Knicky91 (only on exophase.com) knicky91 PSP Help Center 1 01-21-2007 11:33 AM

    Forum Jump


    no new posts