Results 1 to 17 of 17

Thread: These are same: "Dim ss$" or "Dim ss As String"?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2005
    Posts
    81

    These are same: "Dim ss$" or "Dim ss As String"?

    These are same: "Dim ss$" or "Dim ss As String"?

  2. #2
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: These are same: "Dim ss$" or "Dim ss As String"?

    Yep


    Has someone helped you? Then you can Rate their helpful post.

  3. #3
    Frenzied Member longwolf's Avatar
    Join Date
    Oct 2002
    Posts
    1,343

    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

  4. #4
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    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.

  5. #5
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    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.

  6. #6
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    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

  7. #7
    Member
    Join Date
    Nov 2004
    Location
    California
    Posts
    46

    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!!!

  8. #8
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    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.

  9. #9
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: These are same: "Dim ss$" or "Dim ss As String"?

    Here are some, but I guess they aren't all of them : http://www.vbforums.com/showpost.php...44&postcount=9


    Has someone helped you? Then you can Rate their helpful post.

  10. #10
    Member
    Join Date
    Nov 2004
    Location
    California
    Posts
    46

    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

  11. #11
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    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.

  12. #12
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: These are same: "Dim ss$" or "Dim ss As String"?

    There are a couple more, including Boolean.

  13. #13
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: These are same: "Dim ss$" or "Dim ss As String"?

    Quote Originally Posted by dglienna
    There are a couple more, including Boolean.
    No, Booleans doesn't have any type-declaration character.

  14. #14
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    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.

  15. #15
    Member
    Join Date
    Nov 2004
    Location
    California
    Posts
    46

    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

  16. #16
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: These are same: "Dim ss$" or "Dim ss As String"?

    Quote Originally Posted by Jerk
    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.

  17. #17
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: These are same: "Dim ss$" or "Dim ss As String"?

    I wondered about that.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width