Topic: how to set events OnChange and More
how to set or script cal text in textbox time event
txetbox1 = text_1
textbox2 = text_2
textbox3 = text_1*text_2
Easy For Beginner Student For Me
My Visual Database → General → how to set events OnChange and More
how to set or script cal text in textbox time event
txetbox1 = text_1
textbox2 = text_2
textbox3 = text_1*text_2
Do you mean, calculate result in TextBox3, when user input values in TextBox1 and TextBox2?
procedure Form1_Edit1_OnChange (Sender: string);
begin
try
Form1.Edit3.Text := IntToStr( StrToInt(Form1.Edit1.Text) * StrToInt(Form1.Edit2.Text) );
except
Form1.Edit3.Text := '';
end;
end;
procedure Form1_Edit2_OnChange (Sender: string);
begin
try
Form1.Edit3.Text := IntToStr( StrToInt(Form1.Edit1.Text) * StrToInt(Form1.Edit2.Text) );
except
Form1.Edit3.Text := '';
end;
end;
Thank You It Is answer be valuable
Thank you again ...
My Visual Database → General → how to set events OnChange and More
Powered by PunBB, supported by Informer Technologies, Inc.
Theme Hydrogen by Kushi