I wondered if anyone know a good method to extract serteain information from a string.
Take the following two strings for example:
1) Unit1.pas(57) Warning: Variable 'k' might not have been initialized
2) Unit1.pas(31) Hint: Variable 'CharID' is declared but never used in 'TForm1.Button1Click'
As you can see its a compiler info from DCC32.EXE. I want to first know if the string is an "Warning" or a "Hint" (or Error etc). Then I want to extract the Messega ("Variable 'k' might not have been initialized" in string 1). Finally I want to know witch file ("Unit1.pas) and where in the file (line "57") the error warning from.
I would like to put the information in an array of records.