Results 1 to 7 of 7

Thread: variable declaration...?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2004
    Location
    Beneath the mystical Sky...
    Posts
    17

    Smile variable declaration...?

    What is the difference between the declaration Dim MyString$ to Dim MyString? I don’t know what the character “&” does when the program runs if it is appended with a variable. please help...
    No matter who you are and where you are, remember we are all living under the same sky.

  2. #2
    PowerPoster
    Join Date
    Dec 2003
    Posts
    4,787
    its 'old school vb' i cant find my old book at the mo but decalring

    dim string1$

    is the same as

    dim string1 as string

    thats if i remmber correctly that $ = string

  3. #3
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    Yup

    $ = String
    & = Long
    % = Integer
    # = Double
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Jul 2004
    Location
    Beneath the mystical Sky...
    Posts
    17
    oh, thanks so much for the information!
    No matter who you are and where you are, remember we are all living under the same sky.

  5. #5
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    And it's preferable you don't use the "Old Skool" method.

  6. #6
    Frenzied Member vbNeo's Avatar
    Join Date
    May 2002
    Location
    Jutland, Denmark
    Posts
    1,994
    Originally posted by mendhak
    And it's preferable you don't use the "Old Skool" method.
    Many versions 3rd party version of BASIC use it though, so it's good to know...
    "Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
    - Zack de la Rocha


    Hear me roar.

  7. #7
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Originally posted by vbNeo
    Many versions 3rd party version of BASIC use it though, so it's good to know...
    Yes, but they suck.

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