Hello,
The following problem has arisen:
I have created a complex record
[pascal]
Foo2 = record
__foo2byte: array of byte;
end;
Foo1 = record
__Foo1: array of Foo2;
end;
PTest = ^TTest;
TTest = record
_1: array of Foo1;
end;
var
Ttest_1 : TTest;
[/pascal]
filling Ttest_1 with data, I set all arrays in the program using setlength and fill in the data. I also have created a linked list, of the pointer type Ptest. Now, I want to fill a new item of the list with Ttest_1.
Question:
- How can the new instance of the list 'know' all the dimensions of the array's I set in Ttest_1?
- Is there a fast way to fill in all the data of Ttest_1 in the new list item?


Reply With Quote

I have a (fixed) array of weapon types, and an in-game linked list of weapons. Each time a weapon is fired, an item is added to the list, and the specific weapon type data from the array, is put into this new list item (which is of course of the same type). No OOP! :lol:
