StringGrid.Rows is an array of TStrings, thus wants a [Index] to the row
you're talking about.
Rows[0].Move(1,0) should move column 1 to column 0 of Row 0, but generates
a "Cannot insert or delete rows from grid." error.
--On Thursday, March 29, 2001 4:40 PM +1200 Luke Pascoe
<[EMAIL PROTECTED]> wrote:
> When I use this line:
> StringGrid.Rows.Move(OldRow, NewRow);
> I get this error:
> '[' expected but '.' found
> That's the '.' between Rows and Move.
>
> It looks valid to me?! (D5 BTW)
>
> ========================================================
> Luke Pascoe Delphi Programmer
> enSynergy Consulting LTD
>
> [EMAIL PROTECTED] +64-9-3551593 fax +64-9-3551590
> Level 4, 10-12 Federal St, Auckland, New Zealand
> PO Box 32521, Devonport, Auckland 1330, New Zealand
>
> ================== I.H.T.F.P. ==========================
> -------------------------------------------------------------------------
> -- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"
--
Sig goes here.
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"