I know this is a little silly, but I just switched from C++ to VB and while I've used the str() function quite often, I cant find the function to get text converted into a number.
Printable View
I know this is a little silly, but I just switched from C++ to VB and while I've used the str() function quite often, I cant find the function to get text converted into a number.
It would be
SunnyCode:number = Val(YourStr)
Very easy unlike C++.
But can I know why you left C++ to VB?? I hope to learn C language some day.
Well it's somewhat hard to do maintenance on a VB program in C++ ^_^