Zum Hauptinhalt gehen

Suche

Suche

Need A Vb Script To Read Only After Last ":" From The Data

Kommentare

3 Kommentare

  • Avatar
    Michael Toupin (mtoupin

    Try this:

     

     

    data = split(value,":")
    value =data(ubound(data))
     
    It'll do everything you're looking for.
    0
  • Avatar
    Legacy Poster

    Thank you it works fine but I am getting an

    error #3907 OnProcessData(line 2): : Subscript out of range: 'ubound(...)

    0
  • Avatar
    Michael Toupin (mtoupin

    You'll get that if there's no data being processed, if you're passing null values at some point make sure to do a test for data - easiest way to do that would be to surround it with something like:

     

    If value <> "" then

     

     

    end if

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.