[Lazarus] record literal in FPC?
ik
idokan at gmail.com
Tue Jan 8 16:42:08 CET 2013
On Tue, Jan 8, 2013 at 5:30 PM, xrfang <xrfang at gmail.com> wrote:
> 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?
no, but try the point function
>
> Thanks,
> Shannon
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
More information about the Lazarus
mailing list