for i := 1 to 2 do
begin
if ((Copy(edit1.Text, i, 1) >= '0') and (Copy(edit1.Text, i, 1) <= '9')) then
begin
Showmessage('알파벳이 아니네요..');
Exit;
end;
end;
for i := 3 to length(Edit1.Text) do
begin
if ((Copy(edit1.Text, i, 1) < '0') or (Copy(edit1.Text, i, 1) > '9')) then
begin
Showmessage('숫자가 아니네요..');
Exit;
end;
end;
for i := 1 to 2 do
begin
if ((Copy(edit1.Text, i, 1) >= '0') and (Copy(edit1.Text, i, 1) <= '9')) then
begin
Showmessage('알파벳이 아니네요..');
Exit;
end;
end;
for i := 3 to length(Edit1.Text) do
begin
if ((Copy(edit1.Text, i, 1) < '0') or (Copy(edit1.Text, i, 1) > '9')) then
begin
Showmessage('숫자가 아니네요..');
Exit;
end;
end;