Jump to content

Validações


messi

Recommended Posts

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

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

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....

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.