These are same: "Dim ss$" or "Dim ss As String"?
Printable View
These are same: "Dim ss$" or "Dim ss As String"?
Yep :)
Dim ss$ , Is an older style
Dim ss As String, Is more accepted now
$ and AS STRING are equally acceptable.
One is shorter than the other, thats all.
Well when it comes to acceptence it depends... I prefer to write out As String instead of using the shorthand with the dollar sign simply because it's more descriptive. But that's my personal preference.
Of course, it's a matter of personal choice. I use both ways at times.
I meant that it was accepted by the compiler :)
i was wondering since this has to do with pretty much what this post is about whats the symbol for boolean ? or could someone post all them thanks!!!
I've seen them posted twice. This time, if I see them, I'l save them.
Here are some, but I guess they aren't all of them : http://www.vbforums.com/showpost.php...44&postcount=9
Yeah thanks for help i know though ones allready but thanks for your help ill try looking for them thanks
Booleans and Bytes doesn't have any type-declaration characters.Code:$ = String
% = Integer
& = Long
! = Single
# = Double
@ = Currency
There are a couple more, including Boolean.
No, Booleans doesn't have any type-declaration character.Quote:
Originally Posted by dglienna
I thought that Rhino had one.. I could be wrong, though. :)
Now that I think about it, there were some that didn't have a shortcut.
http://msdn.microsoft.com/library/de...Characters.asp
thank you i just found that out myself but thanks for replying
Just note that the link is for VB.Net and that VB6 doesn't support literal type characters the way that article discribes. But you can define characters that can be interpretated as a particular type by using the Deftype statements like DefInt or DefBool and so on.Quote:
Originally Posted by Jerk
I wondered about that.