Results 1 to 4 of 4
  1. #1
    Ugleh's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    House, Where you live?
    Posts
    276
    Reputation
    17
    Thanks
    221
    My Mood
    Blah

    Knowledge of Dim

    For all the coding language I know, Variables is a must. It helps everything go smoothly, and thats what Dims are in Vb.Net, it represents Variables.

    Now their are different types of Dims, and I will explain them all.
    Now the basic dim is the string

    Code:
    Dim Var1 as String
    Var1 = "Hello"
    Or
    Code:
    Dim Var1 as String = "Hello"
    You can also dim the sting using a textbox like
    Code:
    Dim Var1 as String
    Var1 = Textbox1.text
    Now you might think its not that useful but it is, lets take this for example. We want to put the Date in a message box, you cant just put
    Code:
            MsgBox(DateTime = Today())
    You will get an error, so what you do is this
    Code:
            Dim TodayDate As DateTime = Today()
            MsgBox(TodayDate)
    Giving it no error.

    Now we have strings down, and custom Values, lets get to the rest.

    Boolean
    Boolean is a value of only True or False, an example would be
    Code:
    Dim a As Boolean = True
    String
    String is just words, a sentence, or a phrase. An example is above and below.
    Code:
    Dim Sti as String
    Sti = "Hello There world!"
    Byte
    a Byte is an 8 bit unsigned integer, meaning its a data value, and a number.
    Code:
    Dim fileData As Byte
    Char
    Char is a variable type. It can hold one character at a time (the Char is short for Character).
    Code:
    Dim OneCharacter As Char
    OneCharacter = "A"
    DateTime
    DateTime is also a Var type, this one you can go here for all the unique types.
    Code:
    Dim TodayDate As DateTime = DateTime.Now
            MsgBox(TodayDate)
    Decimal
    Decimals is numbers that aren't full, like 3.24. If you where to use a string for 3.24 it would just read it as 3, and not the full decimal.
    Code:
    Dim Dec as Decimal
    Dec = 3.24

    Dim myVar as <data type goes here>

    There are afew more but these are the most commonly used. Hope you get the knowledge of Dims now.

  2. The Following 4 Users Say Thank You to Ugleh For This Useful Post:

    furmonk (05-14-2011),mnpeep (11-27-2009),RawVb (01-04-2010),Stephen (09-29-2009)

  3. #2
    K4GE's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Posts
    311
    Reputation
    13
    Thanks
    65
    My Mood
    Inspired
    Very nice explenation!
    This will help realy some starter coders.
    I couldn't explain it better myself.
    Rep + !

  4. The Following User Says Thank You to K4GE For This Useful Post:

    theavengerisback15 (12-04-2009)

  5. #3
    theavengerisback15's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Location
    C:\Projects\Avenger
    Posts
    43
    Reputation
    10
    Thanks
    3
    My Mood
    Aggressive
    Thanks, i'll study VB8 more^^

  6. #4
    Zoom's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Your going on my 24/7 DDoS hit list.
    Posts
    8,552
    Reputation
    127
    Thanks
    5,970
    My Mood
    Happy
    Quote Originally Posted by theavengerisback15 View Post
    Thanks, i'll study VB8 more^^
    Dump in old treads that is 09-29-2009 old!


    + read the rules before you post!
    -Rest in peace leechers-

    Your PM box is 100% full.

Similar Threads

  1. [Help] Using dim's from Public Functions
    By apezwijn in forum Visual Basic Programming
    Replies: 4
    Last Post: 10-10-2009, 10:05 AM
  2. Knowledge is power[KGB]
    By Magisterium in forum Showroom
    Replies: 4
    Last Post: 07-28-2009, 11:27 PM
  3. ~~Trading Knowledge~~
    By gozza12 in forum Combat Arms Hacks & Cheats
    Replies: 7
    Last Post: 03-11-2009, 03:19 AM
  4. Common Knowledge Thread
    By chc18 in forum General
    Replies: 29
    Last Post: 11-12-2007, 05:44 PM
  5. Bestow Upon Me Your Knowledge!
    By NeedHacksBad in forum General
    Replies: 7
    Last Post: 08-29-2007, 05:24 AM

Tags for this Thread