How do I use Arrays with records? When I do the following:
[COLOR="Blue"]type
aRecord = record
arry: Array[0..9] of string[255];
end;
var
R: aRecord;
F: File of aRecord;
A: Array[0..9] of string[255];
begin
A[0]:= 'Hello World!';
R.Arry:= A;
Assign(F, 'OutFile.dat');
ReWrite(F);
Write(F, R);
Close(F);
end; [/COLOR]
However, it returns "Incompatible Types"???Hope you can help!
Regards
Matt.
Edited by WingedPanther, 03 December 2008 - 08:26 AM.
add code tags (the # button)


Sign In
Create Account

Back to top









