[fpc-pascal] Schema Types
Kevan Hashemi
hashemi at opensourceinstruments.com
Mon Dec 15 20:57:53 CET 2008
Dear Florian,
> var
> a : array of array of real;
>
> begin
> setlength(a,num_rows,num_columns);
Interesting. What about schema types that are no simple arrays? Like
this one:
type
fancy_type(a,b,c:integer)=record
first:array [0..a,0..b] of integer;
second:array [0..a,0..b] of real;
third: array [0..c] of char;
end;
var
fancy:^fancy_type;
begin
fancy:=new(fancy,10,20,300);
How do I apply setlength to "first" and "second" after declaring the
fancy_type?
Yours, Kevan
More information about the fpc-pascal
mailing list