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?
0
Answers
FirstPart := CopyStr(SomeString, 1, StrPos(SomeString, '-') - 1);
SecondPart := CopyStr(SomeString, StrPos(SomeString, '-') + 1);
....