replacing characters

Results 1 to 2 of 2

Thread: replacing characters

  1. #1
    Join Date
    Dec 1969

    Default replacing characters

    Is there a way to replace every Nth character in a string when you do not know what words are in the string

  2. #2
    Join Date
    Dec 1969

    Default RE: replacing characters

    For i = 1 to Len(myString) Step n<BR> If Mid(myString,i, 1) = "H" Then &#039;or your character<BR> Replace(myString, Mid(myString, i, 1), "h")<BR> End If<BR>Next<BR><BR><BR>Obviously, n is your "Nth" character

Posting Permissions

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