copy text after hyphen/dash

navisionerinnavisionerin Member Posts: 161
Hello, how can I copy text after "-" or just delete the text before the "-"
I tried copystr but it asks me for position and that could be dynamic.
I have
text := 'code - text1 text2 text3 text4 text5 text6';
int := strlen(text,'-');
text2 := copystr(text, int+1);

what is a better way to write this?

Answers

Sign In or Register to comment.