Such as the Action, in the event attributes, a OnExecute events, double-click a moment, an event is generated, and has a name, such as ActFileOpenExecute,, now I want to know in the middle of the program this ActFileOpenExecute this name (string), how do you get, please expert advice? Is access to the name of an event
CodePudding user response:
If you do not modify the default name events, you can use the code below:
Edit1. Text:=TBasicAction (Sender). The Name + 'Execute';
After the actual compilation, should be there will be no event corresponding to string, only the corresponding address,