procedure DisableControls(Btn1, Btn2: TButton; Edit: TEdit);
can i use like this code :
procedure DisableControls([color=red]^[/color]Btn1, [color=red]^[/color]Btn2;[color=red]^[/color] Edit);
begin
^Btn1.caption := 'test';
end;
if yes , how?
.
this code isn't True and i just write for solution?!?!?
Hi,
If by using ^ symbol you mean using "pointer to those controls", like Handoko mentioned, It's not necessary, Those controls you send as parameters are already pointers.
Hmmm, Do you want some smart procedure you can just pass (Control: TComponent; APropertyName, APropertyValue: String) ?? So you can pass any property of the control and it automatically finds out what are you talking about?