Jump to content

Recommended Posts

Posted

Hi,

 

TUniDBEdit does not contain a menber named 'SelStar'!  

 

How can I adapt the example below?

 

procedure TForm1.Edit1KeyPress(Sender: TObjectvar Key: Char);

begin

   if Key = #8 then
      exit;

   if Length(Edit1.Text) = 3 then
      begin
         Edit1.Text := Edit1.Text + '.';
         Edit1.SelStart := Length(Edit1.text);
      end;

   if Length(Edit1.Text) = 7 then
      begin
         Edit1.Text := Edit1.Text + '.';
         Edit1.SelStart := Length(Edit1.text);
      end;

   if Length(Edit1.Text) = 11 then
      begin
         Edit1.Text := Edit1.Text + '-';
         Edit1.SelStart := Length(Edit1.text);
      end;

end;

  • 6 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...