Announcement

Collapse
No announcement yet.

Replace $CRLF

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Replace $CRLF

    Why does this fail:
    Local sTmp As String
    Replace $CRLF With "|" In sTmp

    But yet Tally(sTmp,$CRLF) returns 2


    The string has two $CRLF's in it...

    Is this a known issue?


    ------------------
    Scott
    Scott Turchin
    MCSE, MCP+I
    http://www.tngbbs.com
    ----------------------
    True Karate-do is this: that in daily life, one's mind and body be trained and developed in a spirit of humility; and that in critical times, one be devoted utterly to the cause of justice. -Gichin Funakoshi

  • #2
    Works fine for me. Maybe you need the ANY option in the REPLACE?

    If that's not it, please post a compilable program that fails.

    -- Eric

    ------------------
    Perfect Sync Development Tools
    Perfect Sync Web Site
    Contact Us: mailto:[email protected][email protected]ync.com</A>
    "Not my circus, not my monkeys."

    Comment


    • #3
      I thot it had worked in the past for me too...weird...

      g_sCLipText is equal to this:
      Wednesday, June 27, 2001, At 2:30 PM, by turchinsp on COMPUTERNAME
      Wednesday, June 27, 2001, At 2:31 PM, by turchinsp on COMPUTERNAME

      sTmp = g_sClipText
      Replace $CRLF With "|" In sTmp
      lCount = Tally(sTmp,"|") 'Used as $CRLF since it is encryptable..


      hMMM I'll play wiht it a bit more, I'm having another issue that may be related, may be the cause of my issue...


      Thanks

      ------------------
      Scott
      Scott Turchin
      MCSE, MCP+I
      http://www.tngbbs.com
      ----------------------
      True Karate-do is this: that in daily life, one's mind and body be trained and developed in a spirit of humility; and that in critical times, one be devoted utterly to the cause of justice. -Gichin Funakoshi

      Comment


      • #4
        Problem solved, I was doing it correclty, but when I wrote the encrypted/decrypted data to disk I was writing the g_sCliptext not the sTmp...


        DOH!




        ------------------
        Scott
        Scott Turchin
        MCSE, MCP+I
        http://www.tngbbs.com
        ----------------------
        True Karate-do is this: that in daily life, one's mind and body be trained and developed in a spirit of humility; and that in critical times, one be devoted utterly to the cause of justice. -Gichin Funakoshi

        Comment

        Working...
        X