Re: TmaskEdit Validation


[ DelphiLand FAQ ]

Posted by Joey on May 25, 2004 at 00:36:00:

In Reply to: TmaskEdit Validation posted by Coolio on May 23, 2004 at 08:18:45:

is the even that processes the TMaskEdit have it to a check on the length

// Put this before the code in the event

if Length(MaskEdit1.Text) <= 0 then
  begin
  ShowMessage('Please insert some text :)');
  Exit;
end;

// End

This will mean if there is nothing in the MaskEdit it will show a message and then Exit the procedure .
Change the MaskEdit1 to the name of your edit and put what eva you want to happen between the begin and end :)

Joey ^__^


Related Articles and Replies:



[ DelphiLand FAQ ]