Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 140
  • Last Modified:

displaying results

How could I display my results on Delphi? I would prefer not to have my results display in another file but within an interface. Could I do such a thing? Thank you.
0
liau080698
Asked:
liau080698
1 Solution
 
viktornetCommented:
What exaclty do you mean by displaying results within an interface??? What exactly do you mean..

Is it this what you want???? I'm not sure I understand

Label1.Caption := IntToStr(30);

or something like this???

Form.Canvas.TextOut(100,100, 'COOL');

Regards,
Viktor Ivanov
0
 
liau080698Author Commented:
Sorry.
What I actually want is that the results will be displayed immediately after the program is run. I do want to write the results to another file which I would have to open to look at the results. I hope my question is a bit clearer this time.
0
 
MotazCommented:
You can use Memo like this :

for i:=1 to 10 do
  Memo1.lines.Add(IntToStr(i));

Instead of this :

AssignFile(f,'Data.txt');
Reset(f);
for i:=1 to 10 do
 Writeln(f,i);
 CloseFile(f);

Regards, Motaz

0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now