Results 1 to 3 of 3

Thread: declaring variables ???

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    didn't decide yet
    Posts
    566

    declaring variables ???

    say i hay a var called ERMsg what is the difference when i used the $ sign like this ERMsg$.what is the use of the $ sign

    thnks

  2. #2
    jim mcnamara
    Guest
    In Visual Basic using certain appended characters declare the datatype as something specific:

    MyVar& - Long
    MyVar# - Double
    MyVar% - Integer
    MyVar$ - String

    So, you can't do this:
    Dim MyVar$ as Integer <- generates an error

    They are used for un-declared variables in modules where Option Explicit is not in effect. They are also OLD - from VB 2, and are going away. Some day.

  3. #3
    Addicted Member goudabuddha's Avatar
    Join Date
    Jun 2001
    Location
    Somewhere cheesy
    Posts
    203
    it makes it be a string, silly

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