[Lazarus] record literal in FPC?
Mattias Gaertner
nc-gaertnma at netcologne.de
Wed Jan 9 13:22:54 CET 2013
On Wed, 09 Jan 2013 12:27:33 +0008
xrfang <xrfang at gmail.com> wrote:
> Hi Adreas,
>
> I just tried, your method did not work as expected. It compiled ok, but didn't put the cursor at the end of the line as I wanted. However, assign CaretPos a new TPoint worked.
>
> Regards,
>
> 在 三, 1月 9, 2013 at 4:47 下午,Andreas Schneider <aksdb at gmx.de> 写道:
> Hi,
>
> you could also use the with-statement, that is pretty handy in such cases:
>
> with Edit1.CaretPos do
> begin
> X := 0;
> Y := 0;
> end;
"With" does not work with record properties.
Mattias
More information about the Lazarus
mailing list