Results 1 to 4 of 4

Thread: Why won't this work???

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2006
    Posts
    10

    Why won't this work???

    I can't figure out a way to do this because i need R and r to be different values same with B and b can anyone help???

    VB Code:
    1. Dim R As Double
    2.         Dim B As Double
    3.         Dim r As Double
    4.         Dim b As Double

  2. #2
    PowerPoster VBDT's Avatar
    Join Date
    Sep 2005
    Location
    CA - USA
    Posts
    2,922

    Re: Why won't this work???

    Quote Originally Posted by thegreatsmc
    I can't figure out a way to do this because i need R and r to be different values same with B and b can anyone help???

    VB Code:
    1. Dim R As Double
    2.         Dim B As Double
    3.         Dim r As Double
    4.         Dim b As Double
    VB is not a case senstiv leguage so you can't do that. You should give them diferent names.

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,344

    Re: Why won't this work???

    Those are bad names for variables anyway. Variable names should be descriptive. C# is case-sensitive and it is still considered poor programming to rely on case alone to distinguish one identifier from another.

  4. #4
    Addicted Member
    Join Date
    Sep 2006
    Location
    Surabaya, Indonesia
    Posts
    163

    Re: Why won't this work???

    VB doesn't support case sensitive. Even if it does, you should never use it. That'll make a lot confusion in the future when you want to edit your code.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width