TIP: Click on subject to list as thread! ANSI
echo: delphi
to: VITALIK MELEHIN
from: SIMON HUGGINS
date: 1997-06-09 19:44:00
subject: TEdit-like element

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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.