I come accross another great tips for you using variants object types and also how to use them with pointers and objects
for a little note, objects are classes, and objects and classes ARE pointers
- Storing pointers objects / classes / pointers to a variant
- cast the objects / classes / pointers to a native int : NativeInt(aPointer);
- store the NativeInt to the variant variable
- Retrieve stored pointers / objects / classes from a variant
- preapare a NativeInt variabele, and assign the variant containing objects / classes / pointers to the NativeInt variable
- cast the NativeInt variable to the pointer type, classes that you need TObject(the_NativeInt_variable).className;
Tidak ada komentar:
Posting Komentar