How to keep abstract data types in memdata fields?

Is there any field type that can hold TObject's or any user defined class's pointer? How can i hold instances of my custom class in memdata?

Who is Participating?
Sinisa VukConnect With a Mentor Commented:

... and almost forgot ...

to get back..

obj := TObject(data.FieldByName('MyObject').AsInteger);

TObject can be your class.
Sinisa VukCommented:

Create common integer field in memdata and hold it with typecast like:

obj: TObject or somethin else...
 data.FieldByName('MyObject').AsInteger := Integer(obj);
mobinex_trAuthor Commented:
Thanks, it works.
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

mobinex_trAuthor Commented:
I've requested that this question be closed as follows:

Accepted answer: 0 points for mobinex_tr's comment http:/Q_27507271.html#37330471

for the following reason:

it works.
mobinex_trAuthor Commented:
wrong comment is accepted
mobinex_trAuthor Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.