emileverh
Members-
Content Count
74 -
Joined
-
Last visited
-
Days Won
2
emileverh last won the day on March 23 2023
emileverh had the most liked content!
Community Reputation
21 ExcellentTechnical Information
-
Delphi-Version
Delphi 12 Athens
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
Correct! But... it's not an easy part of software to write!
-
Copy file to temp folder fails
emileverh replied to emileverh's topic in RTL and Delphi Object Pascal
Thanks Remy for your help!!! -
Copy file to temp folder fails
emileverh replied to emileverh's topic in RTL and Delphi Object Pascal
You are right force deleting a file is not a good idea. The other (unknown for me) process needs the file. Any idea if there is an API to add a kind of duplication number like: file (1).txt, file (2).txt, file (3).txt ? I did Google something but I did not find 1-2-3 an API for that. Anybody knows? -
Copy file to temp folder fails
emileverh replied to emileverh's topic in RTL and Delphi Object Pascal
Thanks and agree! I had to check if the file exists. But the DeleteFile() call was recently added. In previous versions of my app it failed on the next statement TFIle.Copy(). So again; is there a way to force delete a file? -
Hi! I need to copy a file to the Windows-temp folder. But on some of my clients it fails. I can not reproduce it, but when they open a mail with attachment in Outlook and my app is working on the same filename it fails. The routine below fails. Please do not focus on Outlook, but in general. How can I 'force delete' a file? Or how can I safe save a file to the temp folder without problems? Any suggestions? Please help! -Emile function TdtmBoot.CopyFileToTempFolder(const AFullFileName: TFileName): string; begin var lFileName: string := ExtractFileName(AFullFileName); var lTempFolderFullFileName: string := GetTempFolder + lFileName; try if DeleteFile(lTempFolderFullFileName) = False then; // @17.22 begin SendMadBugReport(Self, 'CopyFileToTempFolder(), delete failed'); // <<<<<<<< HERE IT FAILS!!!!!!! end; except end; Result := lTempFolderFullFileName; try TFile.Copy(AFullFileName, lTempFolderFullFileName, true); // true = overwrite Result := lTempFolderFullFileName; except end; end;
-
Agree! Hotfixes and/or faster updates would be nice. Good quality goes above new features!
-
Delphi MT940 implementation (reader, writer)
emileverh replied to Stéphane Wierzbicki's topic in Algorithms, Data Structures and Class Design
Thanks! -
Delphi MT940 implementation (reader, writer)
emileverh replied to Stéphane Wierzbicki's topic in Algorithms, Data Structures and Class Design
Can you send me the reader too? Thx! -
Use GetControls() new since Delphi 11 I believe. Just as an example for me to disable TcxEdit's only. But you can do your own stuff: for var ctrl in frmMain.GetControls([ceftAll]) do begin if (ctrl is TcxEdit) then begin TcxEdit( ctrl).Enabled := false; end; end;
-
Hi guys! I am using D12. I have lots of code for ID’s like this: type TProductID = record ID : nativeint; end; What I want is this: type TProductID = nativeint; And yes I know the last declaration works! But when you make a call to a procedure and you mixed the params by mistake you got no error. Is there any helper, record attribute, compiler directive or so where I did not think of?!?! procedure TForm6.FormCreate(Sender: TObject); begin var tmpid: TProductID := 6; AddToStock(tmpid, 100); AddToStock(100, tmpid); // I want a compiler warning or error here!!!!!!! end; procedure TForm6.AddToStock(pid: TProductID; cnt: nativeint); // Both uses internally nativeint begin ShowMessage(pid.ToString); end; Now I have lot's(!) of database code like this in my program.... var cid : TCustomerID; var pid: TProductID; pid.ID := qryGetStockProductID.AsInteger; cid.ID := qryGetStocCustID.AsInteger; What I want is: pid:= qryGetStockProductID.AsInteger; cid := qryGetStocCustID.AsInteger;
-
Find computer with port 3306 open on LAN
emileverh replied to emileverh's topic in ICS - Internet Component Suite
@Angus and @FPiette, thank you both!! -
Hi! I installed ICS 9.1 today, wowww I am impressed. The demos are very impressive, compliments to the author(s) 😉 But also overwhelming with so much functionality. Can you give me a direction where to look for with what is the easiest way to find a MySQL server ( with port 3306 open) on my LAN (192.168.x.x)? Thanks in advance, Emile
-
What new features would you like to see in Delphi 13?
emileverh replied to PeterPanettone's topic in Delphi IDE and APIs
I know it's a compiler problem, but why can they do it with classes and not with records.... -
What new features would you like to see in Delphi 13?
emileverh replied to PeterPanettone's topic in Delphi IDE and APIs
That can be true, but that is 'not my problem' how to solve it. I use records a lot for several reasons (speed, memory management,....). And it would be VERY nice to have that.