I don't now how to perform this basic OOP operation:
I have a object called: BLA
BLA has a public field FONT of type TFONT
Somewhere in a procedure or 'global' a the unit level
I declare a variable
var GETIT: TFont;
Now I want to do this:
I want to copy all the VALUES (in one assignmentstatement)
of BLA.FONT to GETIT (that is Style and Color and Size and
Name and so forth)
1) GETIT:=BLA.FONT works, but when I change e.g.
GETIT.SIZE, BLA.FONT.SIZE will change as well, and I
don't want that. I want a value assignment not a
2) GETIT:=ASSIGN(BLA.FONT) doesn't work, because BLA.FONT
isn't accepted as a type.
GETIT.Name:=BLA.FONT.NAME etc, works but I think
I shouldn't have to be typing so much assignments.
Ofcourse, it can be done faster (being totally new
How can I do this? (DO NOT BE AFRAID TO USE TOO MANY
WORD WHILE EXPLAINING, I'M RATHER A NEWBIE).