Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: [SOLVED]Insert and remove text not working with Events  (Read 8653 times)

0 Members and 1 Guest are viewing this topic.

canlot

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: Insert and remove text not working with Events
« Reply #15 on: February 10, 2014, 11:48:42 pm »
std::string &remove_last_char(std::string &text)
{
        text.erase(text.size() - 1, 1);
        return text;
}
 

EDIT: Looks like Jesper beat me to it!  :)
Yes thanks to both of you, helped me a lot :)

Jesper Juhl

  • Hero Member
  • *****
  • Posts: 1405
    • View Profile
    • Email

canlot

  • Newbie
  • *
  • Posts: 15
    • View Profile

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10801
    • View Profile
    • development blog
    • Email
AW: [SOLVED]Insert and remove text not working with Events
« Reply #18 on: February 11, 2014, 08:07:10 am »
And the lesson the be learned here once again, is to alaays provide a complete and minimal example. Bugs often hide where they aren't expected. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/