vasco16 Posted October 5, 2009 at 10:42 AM Report Share #290005 Posted October 5, 2009 at 10:42 AM Boas pessoal, Gostaria de saber se é possível somar strings sem as converter.. Não sei se isto é uma bem uma conversão, mas tentei isto: Label22.Text = (int(Label19.Text) + Int(Label20.Text) + Int(Label21.Text)) Mas só uma soma valores inteiros.. como faço para somar também números fraccionais? Link to comment Share on other sites More sharing options...
jpaulino Posted October 5, 2009 at 10:51 AM Report Share #290007 Posted October 5, 2009 at 10:51 AM Em vez de converteres para Integer, convertes para Double Usa Double.Parse() Link to comment Share on other sites More sharing options...
ribeiro55 Posted October 5, 2009 at 10:55 AM Report Share #290010 Posted October 5, 2009 at 10:55 AM Ou CDbl() que já vem de longe 😄 Sérgio Ribeiro "Great coders aren't born. They're compiled and released""Expert coders do not need a keyboard. They just throw magnets at the RAM chips" 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