1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

New User: VB 2010 Variable syntax

Discussion in 'Visual Basic ( VB )' started by MstrPBK, May 28, 2011.

  1. MstrPBK

    MstrPBK New Member

    Joined:
    May 28, 2011
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    St. Paul, MN USA
    I am relearning BASIC after 30 some years. I have done some reading, but what I am reading is not matching how VB 2010 is responding. The problem I think the longer time user ought to see (probably easily) but as a novice the answer is just going over my head.

    Problem: I have assigned a series of integer variables: V01 to V10. The variable name representing the letter V zero [followed by a number 1 to 10]), VB 2010 is not accepting them even though they seem to me to fit the accepted syntax of what a variable ought to be.

    Could some one please explain to me what I am doing wrong?

    Peter Kelley
    St. Paul, MN USA
     
  2. ManzZup

    ManzZup New Member

    Joined:
    May 9, 2009
    Messages:
    278
    Likes Received:
    43
    Trophy Points:
    0
    Occupation:
    Production Manager:Software @ ZONTEK
    Location:
    Sri Lanka
    Home Page:
    your question is not clear enough for a good answer
    but i would be great if you could post your code and indicate the code where you get an error
     
  3. MstrPBK

    MstrPBK New Member

    Joined:
    May 28, 2011
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    St. Paul, MN USA
    Then let me restate the question ...

    Variables: V01; V02; V03; V04; V05; V06; V07; V08; V09; V10

    Question: Why would these variables be accepted in Dimensioning statements and IF/THEN Statements and not in FOR/NEXT statements? Is there something about variable syntax that I am not understanding in Visual BASIC 2010?

    How much more clear can this question be?

    MstrPBK
    St. Paul, MN USA
     

Share This Page