Restrict user input to digits only with InputQuery

  

I’ve followed the Embarcadero documentation to provide an input dialog to let user give keyboard input (I followed the C++ example exactly). I know this is implemented with TEdit boxes internally, is it possible to restrict user input in the dialog to digits only (0-9)?

I’m thinking something like we can do with regular TEdit boxes using the FilterChar property or somehow specify the KeyboardType property to NumberPad.

Comments are closed.