Hi Al, Sorry, hadn't picked up on it being a number. I haven't done much with MaskEdit really, I find it a real PITA.
What does maskedit1.text return if you have 680 in the edit box? My test just returns the actual number... Only other suggestion is to use the StringReplace function to strip out any mask characters before you convert it. HTH, C. -----Original Message----- From: Alistair George [mailto:[EMAIL PROTECTED]] Hello Conor, CB> Does the Text property of a MaskEdit not do what you want? Help ses the CB> following: Use Text to determine the underlying value of the text before it CB> has been formatted by the mask. No, if I do this: strtointdef(maskedit1.text,0) = 0 Say the field is 680_ (with the underline as the default char) it returns 0, so it seems it has to be parsed? --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
