Einzelnen Beitrag anzeigen

Benutzerbild von haentschman
haentschman

Registriert seit: 24. Okt 2006
Ort: Seifhennersdorf / Sachsen
5.288 Beiträge
 
Delphi 12 Athens
 
#19

AW: Wie drucken Sie Name und Note in FASTREPORT?

  Alt 19. Sep 2020, 08:57
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
Miniaturansicht angehängter Grafiken
preview.png  
Angehängte Dateien
Dateityp: zip BaseDonee.zip (129,5 KB, 7x aufgerufen)

Geändert von haentschman (19. Sep 2020 um 10:57 Uhr)
  Mit Zitat antworten Zitat