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
Printable View
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
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.
it makes it be a string, silly