Click to See Complete Forum and Search --> : declaring variables ???
tina104291325
Jan 2nd, 2002, 12:24 PM
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
jim mcnamara
Jan 2nd, 2002, 01:01 PM
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.
goudabuddha
Jan 3rd, 2002, 07:29 AM
it makes it be a string, silly
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.