Graphics

 View Only
  • 1.  OnSetText to remove last character

    Posted 05-09-2017 12:55
    I'm getting data and need to remove the last character from the data. It some times is a %, ., ?...
    This is what I have and not working:
    Text = Replace(Text, -1)

    Should I be doing it in visual logic and if show how?

    Thanks


  • 2.  RE: OnSetText to remove last character

    Posted 05-09-2017 13:33
    Replace is used for searching and replacing something within a string. You need the "Left" function instead.
    Text = Left(Text, Len(Text)-1)


    #XPression


  • 3.  RE: OnSetText to remove last character

    Posted 05-09-2017 17:51
    Thanks much!! Works the way I need it.
    #XPression