messi Posted December 18, 2009 at 08:46 PM Report Share #301355 Posted December 18, 2009 at 08:46 PM Boa noite estou aqui com uma pequena dificuldade, gostaria de saber como proíbo o utilizador de inserir valores numéricos, quando só deve usar strings, isto em Console. obrigado Link to comment Share on other sites More sharing options...
bruno1234 Posted December 19, 2009 at 02:03 AM Report Share #301387 Posted December 19, 2009 at 02:03 AM Podes usar regular expressions para validar isso. Matraquilhos para Android. Gratuito na Play Store. https://play.google.com/store/apps/details?id=pt.bca.matraquilhos Link to comment Share on other sites More sharing options...
messi Posted December 19, 2009 at 10:17 AM Author Report Share #301389 Posted December 19, 2009 at 10:17 AM como assim? nao entendi..... Link to comment Share on other sites More sharing options...
renafi Posted December 19, 2009 at 12:13 PM Report Share #301393 Posted December 19, 2009 at 12:13 PM http://www.c-sharpcorner.com/UploadFile/prasad_1/RegExpPSD12062005021717AM/RegExpPSD.aspx Dá uma vista de olhos. Se continuares com dúvidas, diz. Oracle Certified Professional - AdministraçãoOracle Certified Professional - Pl/sqlMCPD - Microsoft Certified Professional DeveloperMCTS - Microsoft Certified Technology Specialist Link to comment Share on other sites More sharing options...
messi Posted December 19, 2009 at 01:33 PM Author Report Share #301397 Posted December 19, 2009 at 01:33 PM sim ja vi... eu fiz akilo... So que me da um erro, onde tem objvalidate eu meto o nome da class, so que depois dá me erro IsAlpha. O erro é: 'Ex2.Program' does not contain a definition for 'IsAlpha' and no extension method 'IsAlpha' accepting a first argument of type 'Ex2.Program' could be found. Se me conseguires ajudar em agradecia.. Cumprimentos Link to comment Share on other sites More sharing options...
saramgsilva Posted December 20, 2009 at 11:34 AM Report Share #301503 Posted December 20, 2009 at 11:34 AM Boa noite estou aqui com uma pequena dificuldade, gostaria de saber como proíbo o utilizador de inserir valores numéricos, quando só deve usar strings, isto em Console. obrigado Capturas o caracter inserido de verificas se é um digito: Char.IsDigit() se for ingoras.... www.saramgsilva.com As minhas apps no WP7 Marketplace Youtube : Galinho - Windows Phone 7.5 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now