Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mask edit type

Status
Not open for further replies.

Froskoy

Programmer
Joined
Jul 25, 2009
Messages
18
Location
GB
Hi,

I'm using a mask edit but don't seem to be able to use the StrToInt() function as I can with the contents of a normal edit box.

How can I convert the contents of a mask edit box to an integer?

Many thanks,

Froskoy.
 
showmessage(inttostr(strtoint( MaskEdit1.text)));

Worked fine for me. What is your mask?
 
Thanks for the reply. Mask is 000.
 
What is the error message that you get? Copy and paste it here.
 
is not a valid integer value.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top