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

x
?
Solved

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

Posted on 2007-12-03
2
Medium Priority
?
169 Views
Last Modified: 2013-11-22
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
Comment
Question by:pr2501
2 Comments
 
LVL 21

Expert Comment

by:ziolko
ID: 20395000
try this:

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


ziolko.
0
 
LVL 13

Accepted Solution

by:
rfwoolf earned 200 total points
ID: 20395255
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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

877 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question