• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 171
  • Last Modified:

Diferent program(exe) behaviur if i start it from desctop

in memo1 properties: lines string list editor
 to cancel the defolt first line:memo1.

and if i start application from Delphi it works,
but i have  copied it to desktop and if i start program from there text memo1 line remains in memo1 .


I had a older version of my exe program on the PC and i deleted it.
0
pr2501
Asked:
pr2501
1 Solution
 
ziolkoCommented:
try this:

procedure TForm1.FormCreate(Sender: TObject);
begin
  Memo1.Lines.Clear;
end;


ziolko.
0
 
rfwoolfCommented:
Compile the application (Usually Ctrl + F9), which will generate your application.exe and make sure that's the one you're trying to open on the desktop.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

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