General information
Category:
Coding Syntax & Commands
>Can you actually get the type of sender object (BASECLASS in VFP)?
Yes, each TObject has ClassName (analog of BASECLASS), ClassType and ClassParent properties. But usually you need only check if object is related to some class. The is operator is used to verify the actual class of object:
if Sender is TButton then ...
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only