|
-
Jul 3rd, 2005, 03:02 PM
#1
Thread Starter
Lively Member
These are same: "Dim ss$" or "Dim ss As String"?
These are same: "Dim ss$" or "Dim ss As String"?
-
Jul 3rd, 2005, 03:04 PM
#2
-
Jul 3rd, 2005, 06:34 PM
#3
Re: These are same: "Dim ss$" or "Dim ss As String"?
Dim ss$ , Is an older style
Dim ss As String, Is more accepted now
-
Jul 3rd, 2005, 06:41 PM
#4
Re: These are same: "Dim ss$" or "Dim ss As String"?
$ and AS STRING are equally acceptable.
One is shorter than the other, thats all.
-
Jul 3rd, 2005, 06:59 PM
#5
Re: These are same: "Dim ss$" or "Dim ss As String"?
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.
Last edited by Joacim Andersson; Jul 3rd, 2005 at 07:09 PM.
-
Jul 3rd, 2005, 07:05 PM
#6
Re: These are same: "Dim ss$" or "Dim ss As String"?
Of course, it's a matter of personal choice. I use both ways at times.
I meant that it was accepted by the compiler
-
Jul 3rd, 2005, 07:39 PM
#7
Member
Re: These are same: "Dim ss$" or "Dim ss As String"?
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!!!
-
Jul 3rd, 2005, 07:58 PM
#8
Re: These are same: "Dim ss$" or "Dim ss As String"?
I've seen them posted twice. This time, if I see them, I'l save them.
-
Jul 3rd, 2005, 08:11 PM
#9
-
Jul 3rd, 2005, 08:24 PM
#10
Member
Re: These are same: "Dim ss$" or "Dim ss As String"?
Yeah thanks for help i know though ones allready but thanks for your help ill try looking for them thanks
-
Jul 3rd, 2005, 08:25 PM
#11
Re: These are same: "Dim ss$" or "Dim ss As String"?
Code:
$ = String
% = Integer
& = Long
! = Single
# = Double
@ = Currency
Booleans and Bytes doesn't have any type-declaration characters.
-
Jul 3rd, 2005, 08:27 PM
#12
Re: These are same: "Dim ss$" or "Dim ss As String"?
There are a couple more, including Boolean.
-
Jul 3rd, 2005, 08:31 PM
#13
Re: These are same: "Dim ss$" or "Dim ss As String"?
 Originally Posted by dglienna
There are a couple more, including Boolean.
No, Booleans doesn't have any type-declaration character.
-
Jul 3rd, 2005, 08:41 PM
#14
Re: These are same: "Dim ss$" or "Dim ss As String"?
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.
Last edited by dglienna; Jul 3rd, 2005 at 08:47 PM.
-
Jul 3rd, 2005, 08:41 PM
#15
Member
Re: These are same: "Dim ss$" or "Dim ss As String"?
http://msdn.microsoft.com/library/de...Characters.asp
thank you i just found that out myself but thanks for replying
-
Jul 3rd, 2005, 08:58 PM
#16
Re: These are same: "Dim ss$" or "Dim ss As String"?
 Originally Posted by Jerk
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.
-
Jul 3rd, 2005, 09:15 PM
#17
Re: These are same: "Dim ss$" or "Dim ss As String"?
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
|