Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

can't get rid of 1st typed character  RSS feed

 
Gary Frick
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to limit input to only numerics, but when I try to stop the character from appearing, I am only successful with characters beyond the first one. I can't figure out why the event is getting through and the first character always remains.

Thanks
 
alagan sathianathan
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why dont you try using Document class:
IntegerField allows only numeric fields

Document class:
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!