, SizeOf , -, ( ) RECORD.
, , , :
SizeOf (RECORDTYPE) - , , RECORD ( Class), -, 100% - , Char array (not String), :
type
TMyCharType = UnicodeChar; // or AnsiChar. Your choice.
PMacro = ^TMacro;
TMacro = record
Hotkey: Integer;
Command: Array [0..1000] of TMyCharType;
CTRLMode: Boolean;
RepeatInterval: integer;
end;
, , . , , RECORD, , Class, String.
, , PMacro = ^ TMacro , , TMacro . ( - .)
TMacro (reference types) are already referenced, so there is no need to take their address, because they are passed inside variables between variables of type TMacro (if it's a class) as a pointer. So you really need to get some clarity about the types of records and the types of values in your code.
source
share