procedure TForm.validaBlanco(Sender: TObject; var Key: Word);
begin
if ((key = VK_RETURN) or (key = VK_UP) or (key = VK_DOWN) or (key = VK_tAB))then
begin
if Length((sender as TEdit).Text) = 0 then
begin
MessageBeep(MB_ICONHAND); // HACE SONAR EL SONIDO DE ERROR;
MessageDlg('No puede dejar este campo en blanco',mterror,[mbok],0);
key:= 0;
(sender as TEdit).SetFocus;
end;
end;
end;
funciona super bien cuando es enter, uparrow, downarro, [b]NO VALIDA CUANDO SE PULSA EL TABULADOR este procedimiento es llamado desde el evento Onkeydown del edit[/b]








