Hello, I'm Delphi programmer, and I'm migrating to B4A.
When I want to change the properties of a group of components, I can usually do the following in Delhpi.
Example:
for i: = 0 to ComponentCount -1 of
begin
if Components is TEdit then
TEdit (Components ) color: = clWhite;
end;
Reason:
I want to do this:
BackgroundText.Initialize (Colors.White, 5)
edtNome.Background = BackgroundText
edtSobrenome.Background = BackgroundText
edtCEP.Background = BackgroundText
edtRua.Background = BackgroundText
edtBairro.Background = BackgroundText
edtCidade.Background = BackgroundText
edtPais.Background = BackgroundText
edtEmail.Background = BackgroundText
edtComplemento.Background = BackgroundText
edtNumero.Background = BackgroundText
only without having to type one by one.
I do not know if I could make myself understood?
When I want to change the properties of a group of components, I can usually do the following in Delhpi.
Example:
for i: = 0 to ComponentCount -1 of
begin
if Components is TEdit then
TEdit (Components ) color: = clWhite;
end;
Reason:
I want to do this:
BackgroundText.Initialize (Colors.White, 5)
edtNome.Background = BackgroundText
edtSobrenome.Background = BackgroundText
edtCEP.Background = BackgroundText
edtRua.Background = BackgroundText
edtBairro.Background = BackgroundText
edtCidade.Background = BackgroundText
edtPais.Background = BackgroundText
edtEmail.Background = BackgroundText
edtComplemento.Background = BackgroundText
edtNumero.Background = BackgroundText
only without having to type one by one.
I do not know if I could make myself understood?