What does $ sign mean after a variable


Hi, I would like to know what it means when you put
a $ sign after a variable name

ex:

Public Function SpellCheck(ByVal IncorrectText$) As String

Thanks

Tief

Comments

  • :
    : Hi, I would like to know what it means when you put
    : a $ sign after a variable name
    :
    : ex:
    :
    : Public Function SpellCheck(ByVal IncorrectText$) As String
    :
    : Thanks
    :
    : Tief
    :

    Means it's a string. It's a partially out-of-date syntax. Use this instead:

    Public Function SpellCheck(ByVal IncorrectText As String) As String
  • : :
    : : Hi, I would like to know what it means when you put
    : : a $ sign after a variable name
    : :
    : : ex:
    : :
    : : Public Function SpellCheck(ByVal IncorrectText$) As String
    : :
    : : Thanks
    : :
    : : Tief
    : :
    :
    : Means it's a string. It's a partially out-of-date syntax. Use this instead:
    :
    : Public Function SpellCheck(ByVal IncorrectText As String) As String
    :

    It's sure a quick way to make strings though... you can even dimension them that way...

    Dim MyString$

    and you don't have to put as anything. :)



Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories