Can you tell me in the following code how to set the Sender
property?
void __fastcall TForm1::ImageAllClick(TObject *Sender)
{
// how to change the Sender->Tag;
Another set of brackets is needed because it needs to type-cast Sender and not Sender->Tag. Without outside parentheses you would probably see the compiler-error (or at least warning about converting int to pointer or something like that...)
the style of good tone say what is better to use extra brackets. Syntactically and programatically there is correct to not use them, but it is a bad coding style.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.