blob: b8d4e28a9b4894d9b7f4c9464eb924fb2d728b84 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<?php
class Home extends TPage
{
public function validator1_onvalidate($sender, $param)
{
$param->IsValid = $this->textbox1->Text == 'Prado';
}
public function button1_oncallback($sender, $param)
{
if($this->IsValid)
$this->label1->Text='Callback success';
else
$this->label1->Text='Validation failed';
}
}
|