Hi...
you want this?
Question:
How long you programming Delphi?
You should read this information:
StyleGuide: https://wiki.delphi-jedi.org/wiki/Pr...ge_Style_Guide
* naming of units, variables
* indentation
* readable names
CamelCase:
https://en.wikipedia.org/wiki/Camel_...er_programming
Your Project:
Do you want to learn something?
...ok.
Plus:
+
SQL with parameters
Minus:
- naming of the components/units -> Do yourself a favor with it. It is better readable.
- Never write hardcoded folders/files,
access data into the connection. This belongs, partly encrypted, into an INI file or into the registry.
Code:
object Conn: TFDConnection
Params.Strings = (
'Database=D:\Database Desktop\BaseDonee\SCOLAIRE.FDB'
'User_Name=SYSDBA'
'Password=masterkey'
'DriverID=
FB')
Connected = True
LoginPrompt = False
Left = 79
Top = 22
end
- Never use
DB tables. Better use Querys.
- DateTime Edit without check. Better use a DateTimePicker...
- Creation of the Datamodule before creating Main form. (in
DPR)
- use Anchors for the components
http://docwiki.embarcadero.com/Libra...ontrol.Anchors
- Firebird has a function for reading the new ID
https://firebirdsql.org/refdocs/lang...21-insert.html
- write the code or/and names better in english.
what i do:
* formatting
* naming
*
SQL was wrong
* assignment of the
query to the report
* delete unused report datasets
* editing report