|
-
Jan 2nd, 2002, 01:24 PM
#1
Thread Starter
Fanatic Member
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
-
Jan 2nd, 2002, 02:01 PM
#2
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.
-
Jan 3rd, 2002, 08:29 AM
#3
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|