Sender's?? With: All edit share a??? ^? V format

Source: Internet
Author: User
Tags format key ord


1. All edit is only allowed? S?? In the end, Zheng is only allowed to do so. into one small iteration C
2. Don't want to? χ??? Edit all?? OnKeyPress Events

So you just.? One??, all the other points in object Inspector? :
Procedure tform1.edit1keypress (Sender:tobject; var key:char);
Var
Intcompidx:integer;
sttext:string;
Begin
if (Ord (Key) = +) Then
Begin
Intcompidx: = (Sender as Tedit). Componentindex;
Sttext: = Tedit (Components[intcompidx]). Text;
If Pos ('. ', Sttext) > 1 Then
Key: = #0;
End
End

If not? X is what y see?? You don't have to do that. Amount
if (Ord (Key) = +) and
(Pos ('. '), Tedit (components[(Sender as Tedit). Componentindex]). Text) > 1) Then
Key: = #0;




Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.