-
Content Count
211 -
Joined
-
Last visited
-
Days Won
5
Posts posted by haentschman
-
-
Free is enough. (for components) If you have your own objects in use and you check with Assign, then FreeAndNil is correct. Otherwise Free is also enough here.
-
Hi...
! The naming of the components with "...1" at the end seems like placing it on the form.
Better...
.... .... // ! not on the form IdSSLIOHandlerSocketOpenSSL := TIdSSLIOHandlerSocketOpenSSL.Create(nil); try IdSMTP := TIdSMTP.Create(nil); try IdMessage := TIdMessage.Create(nil); try // .... .... ..... // finally IdSSLIOHandlerSocketOpenSSL.Free; end; finally IdSMTP.Free; end; finally IdMessage.Free; end; // ... end;
or
Placing on the form... and finish. I dont like it.
-
Hi...
QuoteIs this construct OK?
...No. It contains "with". "with" is like 90s...
Why use many developers the "with"...old school? Everybody knows by now that there can be problems with this...TRect (example) or no resolution of variables during debugging.
- 2
-
[OT]
Imho is the reason the "with"... With ist like 90's.
[/OT]
-
TExample = class private FIndex : Integer; public constructor Create; property Index: Integer read FIndex write FIndex; end; ... constructor TExample.Create; begin FIndex := 999; end;
...the same idea.
-
I would like to have it in german...
-
Hi...
The question is...why you want the imho old TSQL instead of FireDAC, UNIDAC, Zeos?
-
Hi...
Question to Andreas: We can expect it?...sometime.
Great Work...Thanks.
-
-
Hi...
Imho is the editor in the MSSQL studio a script...not a query. How about TFDScript instead of TFDQery?
http://docwiki.embarcadero.com/Libraries/Seattle/en/FireDAC.Comp.Script.TFDScript
' + quotename(name,'''') + ' also in scripts you can use parameters
-
-
QuoteWhat problem is that supposed to solve?
+1 ???
-
Hi...
QuoteUPDATE FICHADAS SET HASTA = ' + QuotedStr(FormatDateTime('dd-mm-yyyy HH:nn',FDMemTbCSV.FieldByName('Fecha').AsDateTime))
....please use every time SQL Parameters!
Qry.SQL.Text := 'select Blubb from Bla where Date = :BDA'; Qry.ParamByName('BDA').AsDateTime := Now;
See SQL Injection:
https://en.wikipedia.org/wiki/SQL_injection
https://de.wikipedia.org/wiki/SQL-Injection
Then you will see that the DateTime problems will disappear. (Field in DataBase = DateTime)
- 1
-
Hi...
the solution ist here... https://www.danielwolf.eu/blog/2015/1668-meine-vorstellung-einer-willkommens-seite
...slim and effective
- 7
-
QuoteIt is not hard to find reliable online storage.
...yes.
What if your house burns down? All data that cannot be restored, especially the Delphi projects, must be transferred to the data center outside the house. (Webspace/Webserver)
- 1
-
-
Hi...
i think ist confused.
Please show the code of your program...
Principle:
1: loop ( while not Database.Eof do ...from Query)
2: create Mail complete with sender, receiver (from database "FieldByName"), body (the same) ...
procedure Send(Sender: string; Receiver: string; Body: string);
3: send
Quoteallinonebutton.click
Sorry...never use a click procedure...bad design.
QuoteSMTP Component not ready
In the loop use .Open / .Close of the ICS component...imho.
-
QuoteSo, delete and start again
this is named: learning by doing.
-
Hi...
Quote\src\Programs as repository and App1..2 are just folders in branches or each their own repository?
correspondingly: one dproj -> one repository
Branches in the repository:
Picture:
master: unused
release: new branch
development: new branch
#xxx: new branch for every feature -> then merge to development
- 1
-
Hi...
Even if you are the only developer, you should have a ticket system. You can use it to create small "building blocks" for the project. Think of it as a "to-do" list, where you document which changes have been made for the one ticket.
A small one is Mantis. https://www.mantisbt.org/
- 1
-
-
QuoteDoes Git have an option for full GUI tools to work with?
...see TortoiseGIT ...example before.
- 1
-
Quoteonly do it with Tortoise.
...yes.
Example:
Tutorial in German from jaenicke:
-
Hi...
QuoteI'm not using any typical source control systems
...in japan they say "harakiri" to that.
QuoteI feel like I need to switch to proper solution
YES!
Quoteis Delphi IDE really ready to work with real source control?
...imho not. The features in the IDE are are too little. Better you use other tools like Tortoise for (GIT, SVN) ...what you like.
Tutorial: https://www.youtube.com/watch?v=N1KNw1tr47k
- 1
- 1
Database in Delphi
in Databases
Posted
Hi...
...wow.
...better.
Questions:
We know IBConsole and IBDatabase ...but which database you use? Firebird or Interbase?
Tools:
Admintool: https://dbeaver.io/
...better than console.
Tip:
Never use T???Table...only T???Query and SQL!