I want to display certain integers in a memo, listbox or whatever. I've tried a memo, listbox and showmessage() but each throws incompatibility error between string and integers.
This is where it starts going wrong:
Memo1.Lines.Add('Physical Functioning: '+PhysFunc div PhysCount);
PhysFunc and PhysCount are integers calculated further up. I've tried, e.g.:
Memo1.Lines.Add('Physical Functioning: '+IntToStr(PhysFunc div PhysCount));
and:
Memo1.Lines.Add(IntToStr('Physical Functioning: '+PhysFunc div PhysCount));
and:
Memo1.Lines.Add(('Physical Functioning: '+PhysFunc div PhysCount).AsString);
And the same things with a ListBox and showmessage(). But none work. IntToStr returns E2003 undeclared identifier and .AsString returns the error, integer does not contain a member 'AsString'. Are there any alternatives?
I'm using an SDI application in Delphi - could that be the problem?
Thanks