Topic: Combine multiple controls that have the same value
Hello everyone and thanks for reading my request: what should be written in case two controls have the same instruction without having to rewrite the same instruction for both. Yes, I understand that the speech is a bit convoluted and it is not easy to understand.
Let's take an example: Edit1 and Edit2 must have the same text, I would write like this
form.Edit1.text and form.Edit2.text := Hello
instead of:
form.Edit1.text := Hello
form.Edit2.text := Hello
Going to a real case:
if frm.Dipendenti.cbImpiegato.check = 1 then frmDipendenti.lbDatalicenziamentodipendente.Visible and frmDipendenti.dtDatalicenziamentodipendente.visible = False
In this case MVD tells me it expects ';' before AND
Thanks and greetings