Posted October 6, 200519 yr hey there, I have a big question for any VB programmers that could help me. I have a string, I have parsed out the last character (the number 5) and I want to change the String value which = "5" to an integer, how might this be done? EDIT: my bad, I was doing it right, but went about it wrong. for anyone who might need this info.. dim variable as string dim number as integer variable = "10" number = val(variable) ^_^
October 6, 200519 yr Dont answer your own questions you will have killed the programming section for like 4 days now :\
October 7, 200519 yr Author FeroxC said: Dont answer your own questions you will have killed the programming section for like 4 days now :\ youve killed the g0t forums since July, why not yourself? it would be better on all of us... and I can answer my own questions as I please thank you.
October 7, 200519 yr Why bother posting, if you dont like me in these forums why dont you piss of and die.
October 7, 200519 yr there is a method called toString that converts int to strings u need to use the opposite to that will be called parseInt or somthing simular google it
October 7, 200519 yr Author Quote r00t']there is a method called toString that converts int to strings u need to use the opposite to that will be called parseInt or somthing simular google it r00t, i fixed it, and that isnt what I was trying to do, I was trying to take a string value of 6 and make it an integer, but what happened was, in my parsing, I accidentally parsed some letters and that function doesnt work with letters, go figure. But I fixed it, and this is VB, not C++ :p I just happen to fix it before anyone else replied.
November 11, 200519 yr Quote r00t']there is a method called toString that converts int to strings u need to use the opposite to that will be called parseInt or somthing simular google it is toString pre-defined in VB? omfg i never knew lol... I always create my own toString methods, bit more control over what gets returnd when u call it... Edit for n00b typin