1 2 3 4 5 6 7 8 9 10 11 12
<?php class Calculator extends TPage { public function do_sum($sender, $param) { $this->c->Text = floatval($this->a->Text) + floatval($this->b->Text); } } ?>