Surely Enter can automatically be 'used' by your component unless one of the following is true: * the forms KeyPreview property is true. * one of your buttons has its Default property set to true. Even if this is so, you should still be able to trap the Enter key in the OnKeyDown event with a key code of VK_RETURN?
Does the Text property of a MaskEdit not do what you want? Help ses the following: Use Text to determine the underlying value of the text before it has been formatted by the mask. HTH, Conor -----Original Message----- From: Alistair George [mailto:[EMAIL PROTECTED]] What is the preferred way of getting a value out of maskedit. I can use pos('_' (using _ as the mask) but there must be better way. Also, say the user enters a number, then presses Enter can the Enter key be used by the component, rather than an onkeyevent in the mainform? Thanks, Alistair+ --------------------------------------------------------------------------- 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/
