I store in a table the name of my Actions, and dynamically through a query, I return them on screen, as follows:
I declare a variable of the type:
MinhaACL : TAction;
Begin
MinhaACL := TAction(qryActions.FieldByName('nomeacl').Asstring);
MinhaACL.Enabled := True;
End;
But when I try to Enable it with Enable, the system shows the following error:
Access violation at address 3B90C301 in module 'BetterFuell.exe'. Read of address 3B90C301
Is there any other way for me to do this? If anyone can give me a Light.
And I tried to put it like this
MinhaACL := TAction('NomeDaMinhaACL');
MinhaACL.Enabled := True;