E.g. if i have an array[...] of longint and a pointer to array[0], inc(pointer) will increment by four.
Or, if this is to much effort, a sizeof function could be used instead.
Especially, when using records:
Code: Select all
type mydata=record
initstr : array[0..15] of longint;
param1 : word;
param2 : array[0..3] of bit; // !!!
param3 : array[0..3] of bit;
end;
var myarray=array[0..10 of mydata;
so if i would be using a pointer, i could use pointer:=pointer + sizeof(mydata) although i'm using the type as param here.
Anything like this possible ?