padvak Posted June 4, 2012 at 05:38 PM Report Share #460361 Posted June 4, 2012 at 05:38 PM olá, tenho um problema na sintaxe CS$1$0000 me deparo com o seguinte erro Unexpected character '$', agradeço a ajuda amigos. Link to comment Share on other sites More sharing options...
petvetbr Posted June 4, 2012 at 05:52 PM Report Share #460363 Posted June 4, 2012 at 05:52 PM Em qual trecho do código isto ocorre? Você pode colocar para olharmos? Fernando Lage Bastos - MCP/MCTS/MCPD Link to comment Share on other sites More sharing options...
padvak Posted June 4, 2012 at 06:00 PM Author Report Share #460365 Posted June 4, 2012 at 06:00 PM (edited) claro meu amigo! public static bool ValidIP(string testip) { bool CS$1$0000; try { string[] ip = testip.Split(new char[] { '.' }); if (ip.Length != 4) { CS$1$0000 = false; } else { Edited June 4, 2012 at 06:00 PM by padvak Link to comment Share on other sites More sharing options...
petvetbr Posted June 4, 2012 at 06:15 PM Report Share #460370 Posted June 4, 2012 at 06:15 PM (edited) troque o "$" por outro caractere. O compilador do C# dá muito problema em usar este caractere no nomes de variáveis em código gerado manualmente Edited June 4, 2012 at 06:16 PM by petvetbr Fernando Lage Bastos - MCP/MCTS/MCPD 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