跳到主内容

搜索

搜索

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

评论

3 条评论

  • 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

请先登录再写评论。