Page 1 of 1

Trouble coding TMemDataSet

Posted: Mon 08 Feb 2010 23:29
by smithberger
when I try to implement a sorting routine on a DBGrid, Embarcadero 2010 does not recognize the TMemDataSet. specifically, here is the code:

if DBGrid1.Datasource.Dataset is TMemDataSet then etc.

I am getting "Undeclared Identifier 'TMemDataSet' at line 58".

I am not an experienced programmer, so I am sure that I am doing (or not doing) something very basically wrong.

Can anyone give me some advice?

Thank you.


Bonnie

Posted: Tue 09 Feb 2010 08:25
by Plash
You should add the MemDS unit to the USES list.

Trouble coding TMemDataSet

Posted: Tue 09 Feb 2010 17:23
by smithberger
Thank you so much. I just knew there was something basic I was missing! I will now pay more attention to the units.

Bonnie