Examining the variable and their data types.

Discussion in 'Visual Basic ( VB )' started by Fatima Khan, Mar 6, 2010.

  1. Fatima Khan

    Fatima Khan New Member

    Joined:
    Feb 20, 2010
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Student
    Location:
    Pakistan
    How to examine the value of variable when they are not define n hoe to examine their data types ?
     
  2. krazytechno

    krazytechno New Member

    Joined:
    Mar 7, 2010
    Messages:
    38
    Likes Received:
    1
    Trophy Points:
    0
    Occupation:
    knowing the computer world as deep as possible
    Location:
    kolkata,west bengal
    First of all the question is not right.You can not use a variable in programming like c,c++,java
    etc until it is not defined.Because if you wont define a variable data type, compiler could not recognize that and it will throw an error.So first define its data type and then use it.
     
  3. Fatima Khan

    Fatima Khan New Member

    Joined:
    Feb 20, 2010
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Student
    Location:
    Pakistan
    HI,
    I mean that how the compiler Know the data type of the variables .
     
  4. virxen

    virxen Active Member

    Joined:
    Nov 24, 2009
    Messages:
    387
    Likes Received:
    90
    Trophy Points:
    28
    from the values you assign to it



    p.s.
    if you use vb
    use this command as your first in your code
    option explicit
    this will force you to define the datatypes for all variables used by your program.
     
    shabbir likes this.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice