Registriert seit: 16. Jan 2004
Ort: Bendorf
5.219 Beiträge
Delphi 10.2 Tokyo Professional
|
Re: beliebiges procedure-parameter?
13. Jan 2008, 13:56
Vielleicht hilft es dir wenn ich sage das es keine Datentype < 1 Byte gibt
SizeOf(Boolean) = 1
Delphi-Quellcode:
var
Boolvar: Boolean;
begin
Boolvar := true;
Stream.Write(Boolvar,1); // Stream.Write(Boolvar,SizeOf(Boolean));
Stream.Position := 0;
Stream.Read(Boolvar,1);
end;
Michael "Programmers talk about software development on weekends, vacations, and over meals not because they lack imagination,
but because their imagination reveals worlds that others cannot see."
|