Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2002-08

RE: Initializing record types (=?gb2312?B?SG93IHRv...)

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Yet Another Geek
Could anybody tell me that how to assign all

values to a record

typed variable? I mean that in C I can assign a

struct variable

Do you mean like this ?

program rectest;
type tMyRec = record
  a, b : integer;
  s: string[15];
end;
const
  aMyRec: tMyRec = (a:16; b:37; s:'hello');
begin
  with aMyRec do WriteLn(a, ':', b, ':', s);
end.

__________________________________________________ Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

Reply by email