[Lazarus] record literal in FPC?

xrfang xrfang at gmail.com
Tue Jan 8 16:30:22 CET 2013


Hi, 

Is there "record literal in FPC? e.g. normally, you do:

var
   cp : TPoint;

cp.X := 0;
cp.Y := 0;
Edit1.CaretPos := cp;

I would like to use literal directly, such as:

Edit1.CaretPos := (X: 0, Y: 0); 

But the above syntax is wrong. Is there such thing exists?

Thanks,
Shannon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20130108/3d71f90f/attachment-0002.html>


More information about the Lazarus mailing list