On 24 Feb 2012, at 14:28, Everton Vieira wrote:

type
 TTest = class
   const Nomes: array[0..2] of TRec = (mTRec(1, 'everton'), mTRec(2,
'murilo'), mTRec(3, 'vieira'));
 end;

See http://www.freepascal.org/docs-html/ref/refse22.html (the syntax is the same for typed constants and initialized variables, as mentioned at http://www.freepascal.org/docs-html/ref/refse10.html )


Jonas
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to