-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathUnit2.pas
More file actions
41 lines (32 loc) · 738 Bytes
/
Copy pathUnit2.pas
File metadata and controls
41 lines (32 loc) · 738 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
unit Unit2;
interface
uses
UnitEditDocumento,
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm2 = class(TForm)
edtCNPJCPF: TEdit;
Label1: TLabel;
Button1: TButton;
Label2: TLabel;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form2: TForm2;
implementation
{$R *.dfm}
procedure TForm2.Button1Click(Sender: TObject);
begin
if (edtCNPJCPF.isPessoaFisica) then
ShowMessage('Pessoa Física !')
else if (edtCNPJCPF.isPessoaJuridica) then
ShowMessage('Pessoa Jurídica !')
else
ShowMessage('Nada !');
end;
end.