The attached picture is a set of data in richtext file. I am trying to extract the data one character at a time & test for the various fields such as comma or ":-" . However when I extract a single character & test it against the comma I got an error message.
Error message : Error : Operator is not overloaded : "Char" or "Longint"
What am I doing wrong ? Thanks for any help given.
======
for i := 1 to TextLen do
begin
// Select the current character
ARichMemo.SelStart := i;
ARichMemo.SelLength := 1;
CurrentColor := ARichMemo.SelAttributes.Color;
CurChar := ARichMemo.Lines.Text ;
// Check if the color has changed
if CurChar = chr(44) or i = TextLen then
begin
......