Spliting and adding 02-09-2011, 04:34 PM
#1
Hi :epic:
Well... I'm doing final stage of my Math Bruteforcer and I found a little problem:
I split the math problem, so I can add some variables. Well I do this:
Now, I need to add "x" variables between each split.
Problem is, I don't know how many parts there will be, so I will somehow have to loop through all parts and add all x'es...
Any idea please?
Thank you very much!!! Have a great day!!!
Well... I'm doing final stage of my Math Bruteforcer and I found a little problem:
I split the math problem, so I can add some variables. Well I do this:
Code:
arrText = TextBox1.Text.Split("x")
Problem is, I don't know how many parts there will be, so I will somehow have to loop through all parts and add all x'es...
Any idea please?

Code:
result = New DataTable().Compute(arrText(1) & x & arrText(2)......, Nothing)
Thank you very much!!! Have a great day!!!
Staff will never ever ask you for your personal information.
We know everything about you anyway.
We know everything about you anyway.