Autor Beitrag
holgerbremen
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 120



BeitragVerfasst: Mo 25.07.05 10:26 
Hallo,

ich habe verschiedene Records, wobei die Elemente alle den Datentyp 'Array of Char' haben.

ich möchte nun den ganzen Record mit #0 initialisieren. Wie geht denn das?

Gruß
Holger
Sprint
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 849



BeitragVerfasst: Mo 25.07.05 10:31 
Mit FillChar.

_________________
Ciao, Sprint.
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Mo 25.07.05 10:52 
FillChar NUR bei Primitiv-Datentypen verwenden: Array[x..y] of Char. Für Dynamische Arrays musst Du FillChar auf jedes Array einzeln anwenden. Gleiches Gilt für Strings, da ansonsten Memory Leaks erzeugt werden.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
holgerbremen Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 120



BeitragVerfasst: Mo 25.07.05 10:57 
Titel: Klappt
Danke, das wars.