Created
July 16, 2020 18:50
-
-
Save omonien/b00c9ab20b19c8b85db15dd94f1a5dcd to your computer and use it in GitHub Desktop.
Byte Array example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
program Project46; | |
{$APPTYPE CONSOLE} | |
{$R *.res} | |
uses | |
System.SysUtils; | |
var | |
SomeBytes: TBytes; | |
SomeByte: Byte; | |
begin | |
try | |
SetLength(SomeBytes, 2); | |
SomeBytes[0] := $00; | |
SomeBytes[1] := $01; | |
for SomeByte in SomeBytes do | |
begin | |
WriteLn(SomeByte.ToString); | |
end; | |
except | |
on E: Exception do | |
WriteLn(E.ClassName, ': ', E.Message); | |
end; | |
Readln; | |
end. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment