special characters in VB6.0

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Egghead

    #1

    special characters in VB6.0

    Hi all,

    How can I pass special characters into a function, such as :
    I want to replace " in mystring
    mystring = replace(mystrin g,"\"","") <--not working

    same as in C#
    mystring = mystring.Replac e("\"", " ")

    thanks
    Egghead


  • Olof Lagerkvist

    #2
    Re: special characters in VB6.0

    Egghead wrote:
    [color=blue]
    > Hi all,
    >
    > How can I pass special characters into a function, such as :
    > I want to replace " in mystring
    > mystring = replace(mystrin g,"\"","") <--not working[/color]

    mystring = Replace(mystrin g, """", "")
    [color=blue]
    >
    > same as in C#
    > mystring = mystring.Replac e("\"", " ")
    >
    > thanks
    > Egghead
    >
    >[/color]


    --
    Olof Lagerkvist sm6xmk
    ICQ: 724451 @ssa.se
    Web: http://here.is/olof

    Comment

    • Raoul Watson

      #3
      Re: special characters in VB6.0

      You can also pass it as an ascii code.. replace(mystrin g,chr$(34))

      "Egghead" <robertlo_NO_SP AM@shaw.ca> wrote in message
      news:Ieqge.1318 884$6l.1268289@ pd7tw2no...[color=blue]
      > Hi all,
      >
      > How can I pass special characters into a function, such as :
      > I want to replace " in mystring
      > mystring = replace(mystrin g,"\"","") <--not working
      >
      > same as in C#
      > mystring = mystring.Replac e("\"", " ")
      >
      > thanks
      > Egghead
      >
      >[/color]


      Comment

      Working...