delphi edit control input

Updated on technology 2024-03-04
9 answers
  1. Anonymous users2024-02-06

    Hehe, the idea of the 2nd floor is like this:

    varisid:boolean;

    n:integer;

    beginisid:=false;

    for n:=1 to length( dobeginif in ['0'..'9'] thenbeginisid:=true;

    endelse

    beginisid:=false;

    break;

    end;end;

    if isid then

    begin is the student number.

    endelse

    begin is the name entered.

    end;end;

  2. Anonymous users2024-02-05

    for i:=0 to length( doif in [0..9] Then the input string is checked in a loop to determine if it is a number.

    begin code query.

    endelse

    begin code query.

    end;

  3. Anonymous users2024-02-04

    You can get it with two edits, so why bother.

  4. Anonymous users2024-02-03

    In the keypress thing Liang pickpocketing state Zheng Zhong processed.

    This is a case that can only be handled for numbers.

    if key<>#8 then

    beginif(key<'0') or (key >'9') then

    beginkey :=#

    showmessage('Only numbers can be entered');

    end;end;

    This is a case that can only be handled for letters.

    if key<>#8 then

    beginif not(((key<='Sail key ode z') and (key>='a'))or ((key<='z') and (key>='a'))then

    beginkey :=#

    showmessage('Only letters can be entered');

    end;end;

  5. Anonymous users2024-02-02

    The built-in edit widget doesn't seem to have this functionality.

    For example, tlabel has an alignment attribute to control.

    If you want tedit to have this feature, either you write it yourself.

    Either with 3-party controls.

    For example, the faction edit in raize has an alignment property.

    If you want to go down to the base of the wheel, you are fighting the letter.

    Just search for raize.

  6. Anonymous users2024-02-01

    The number to be displayed is: data

    (formatfloat('',data));Or.

    floattostr(round(data*100)/100);

    The above two are rounded, but there is one thing that the syndicate should be aware of:

    Take round as an example: round(The result is 4, but the result of round( is not 5 but 4, that is, 5 meets odd rounding, and the front meets even numbers; The same goes for formatfloat;

    The above two are rounded, and there is a silver rock directly intercepted:

    floattostr(trunc(data*100)/100);

    This method is directly discarded no matter how many it is.

  7. Anonymous users2024-01-31

    :=floattostr(int(strtofloat( /100);

    As long as this is the repentance, the wide exchange is OK.,100 is a two-digit decimal place, if you want to increase the decimal place, you can directly modify this value!

  8. Anonymous users2024-01-30

    procedure : tobject);

    vardt: tdatetime;

    beginif trystrtodatetime(,dt) thenshowmessage('is the date type')

    elseshowmessage('Not a date type');

    end;

  9. Anonymous users2024-01-29

    Didn't have this problem! I don't know what version you use, d6, d7, d2005 don't have this problem!

Related questions
1 answers2024-03-04

I feel the need to. Another possibility is that you have a few dynamic libraries that are not open, you can try to type "regsvr32" in the start of the run, click OK after entering, and then enter "regsvr32" in the rerun, and then press enter to confirm, and try it. >>>More

15 answers2024-03-04

Plug-ins installed with it. Some plugins that are installed without prompting are just going to get into trouble. Uninstall it, no problem.

5 answers2024-03-04

mark it...

Sun Xin's tutorial seems to have it above。。。 >>>More

16 answers2024-03-04

You can delete the Microsoft input method first,And then add it again,So that Microsoft will come to the front,You press ctrl+space to directly Microsoft input method。

11 answers2024-03-04

**Sogou mobile phone input method,One is from the computer**,Then copy it to the mobile phone storage,Search "Sogou mobile phone input method" to enter the official website - click on the input method**tab - select the corresponding model or platform of Sogou mobile phone input method; Or use your mobile phone directly**,Enter the Sogou mobile phone input method**Select the corresponding version**Install it。