Results 1 to 2 of 2
  1. #1
    Gold Lounger
    Join Date
    Jan 2004
    Location
    Italy
    Posts
    3,245
    Thanks
    0
    Thanked 0 Times in 0 Posts

    multiple replace in string (2000 sr-1)

    have this line of code to get from txt file a value for example 65-999999/A
    var_COPE = Mid(RIGA, 1, 11)
    how to replace the caracter - and / with "" final result:
    65999999A

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: multiple replace in string (2000 sr-1)

    var_COPE = MID(RIGA, 1, 11)
    ' Remove -
    var_COPE = Replace(var_COPE, "-", "")
    ' Remove /
    var_COPE = Replace(var_COPE, "/", "")

Posting Permissions

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