Nov 11, 2009 #1 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.
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.
Nov 11, 2009 #2 DjangMan Programmer Joined Jun 1, 2001 Messages 1,787 Location CA showmessage(inttostr(strtoint( MaskEdit1.text))); Worked fine for me. What is your mask? Upvote 0 Downvote
Nov 11, 2009 Thread starter #3 Froskoy Programmer Joined Jul 25, 2009 Messages 18 Location GB Thanks for the reply. Mask is 000. Upvote 0 Downvote
Nov 11, 2009 #4 DjangMan Programmer Joined Jun 1, 2001 Messages 1,787 Location CA What is the error message that you get? Copy and paste it here. Upvote 0 Downvote
Nov 11, 2009 Thread starter #5 Froskoy Programmer Joined Jul 25, 2009 Messages 18 Location GB is not a valid integer value. Upvote 0 Downvote
Nov 12, 2009 #6 DjangMan Programmer Joined Jun 1, 2001 Messages 1,787 Location CA Show us your code. Upvote 0 Downvote