Hi Vitalik,
On Saturday, 7 June 1997 at 00:05:12, Vitalik Melehin confused
me talking about: TEdit-like element to All
VM> Hi, All! Tell me plz somebody: Do have Delphi2 standart
VM> TEdit-like element, that work with Integer, etc. types, but
VM> not with string? Thanx.
You can convert between strings and integers.
i.e. number:=strtoint(edit1.text);
or you can use a TmaskEdit component to restrict the input.
something like:
number:=strtoint(trim(edit1.text));
should do it. The trim is needed to get rid of spaces.
If you look TMaskEdit up in the help files, they should help.
bfn,
si.
Fido: 2:440/7.15 *** SEE IT. LIVE IT. BE IT. TREK_RANKS_UK ***
Internet: huggie@dial.pipex.com
Web: http://ds.dial.pipex.com/huggie
.!. Damn it Jim! I'm a programmer; I NEVER READ THE README!
--- Terminate 4.00/Pro
---------------
* Origin: Fou, con et anglais! (2:440/7.15)
|