I just inherited a Delphi 5 PASCAL code project (Windows app). I have to extract a string with multiple words and put these words in a TListBox. One word per line. How can I extract these words?
I was referred to this post as a possible answer Split a string into an array of strings based on a delimiter. However, it was not because the string contains one, two, or more randomly spaces to separate the words in the string. In addition, I have to use the old Delphi 5 compiler which does not have the built-in Split function.
I tried the answers with Delphi 5. It did not work. There was no available inline TStrings.CommaText nor TStrings.Delimiter. Please advise. Thanks!