Topic: TextBox Mask for Emails
Hey guys, can anyone help me make a mask that allows me to use emails only? being @ and a . after the @ mandatory for example...
many thanks
My Visual Database → General → TextBox Mask for Emails
Hey guys, can anyone help me make a mask that allows me to use emails only? being @ and a . after the @ mandatory for example...
many thanks
Mask works only when text have known length.
can i have a script that detects if i have a "@" and a "." ?
Yes, create OnClick event for button with action "Save Record"
procedure frmAbonent_bOK_OnClick (Sender: TObject; var Cancel: boolean);
begin
if (Pos('@', frmAbonent.edEmail.Text)=0) or (Pos('.', frmAbonent.edEmail.Text)=0) then
begin
ShowMessage('Invalid email address');
frmAbonent.edEmail.SetFocus;
Cancel := True;
end;
end;
My Visual Database → General → TextBox Mask for Emails
Powered by PunBB, supported by Informer Technologies, Inc.
Theme Hydrogen by Kushi