LimeSeed Posted July 8, 2007 Posted July 8, 2007 how do i make it so that i can turn a number into another number? i want to make it so that when the algorithm or code is typed in, it would replace some of the numbers with other for instance multiply the first number by 5, divide the second by 2 and so on. thanks. i already tried if chr() = '1' then $1 = 1 * 5 ;something like this??? thanks global $warming = true
Valuater Posted July 8, 2007 Posted July 8, 2007 Maybe... $number = "123456" $answer = "" $split = StringSplit($number, "") $split[1] = $split[1] * 5 $split[2] = $split[2] / 2 for $x = 1 to $split[0] $answer = $answer & $split[$x] Next MsgBox(0x0, "Answer", $answer) 8)
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