function to remove substring from string

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

    #1

    function to remove substring from string

    Is there a function that'll let me find a substring of a fixed size? in
    other words, I'd like to get a substring in position X and length Y from a
    string. Left or Right wouldn't work since the substring's usually in the
    middle.
    Thanks.



  • Frank Oquendo

    #2
    Re: function to remove substring from string

    Thus spake vaughn:
    [color=blue]
    > Is there a function that'll let me find a substring of a fixed size?
    > in other words, I'd like to get a substring in position X and length
    > Y from a string. Left or Right wouldn't work since the substring's
    > usually in the middle.
    > Thanks.[/color]

    <string>.Substr ing(start, length);

    --
    There are 10 kinds of people. Those who understand binary and those who
    don't.




    Comment

    • Niklas Lagergren

      #3
      Re: function to remove substring from string

      The String.Substrin g Method.....

      Regards,
      Lani

      "vaughn" <VM> wrote in message news:u4FaMEhgDH A.2300@TK2MSFTN GP10.phx.gbl...[color=blue]
      > Is there a function that'll let me find a substring of a fixed size? in
      > other words, I'd like to get a substring in position X and length Y from a
      > string. Left or Right wouldn't work since the substring's usually in the
      > middle.
      > Thanks.
      >
      >
      >[/color]


      Comment

      • Jon Skeet

        #4
        Re: function to remove substring from string

        <"vaughn" <VM>> wrote:[color=blue]
        > Is there a function that'll let me find a substring of a fixed size? in
        > other words, I'd like to get a substring in position X and length Y from a
        > string. Left or Right wouldn't work since the substring's usually in the
        > middle.[/color]

        string sub = original.Substr ing (x, y);

        --
        Jon Skeet - <skeet@pobox.co m>
        Pobox has been discontinued as a separate service, and all existing customers moved to the Fastmail platform.

        If replying to the group, please do not mail me too

        Comment

        Working...