Example: 5x=2*63
string 1 = x
string 2 = 2.
THANKS.
Below i have the code for splitting the problem at the equals sign.
Dim chars As String() = TextBox1.Text.Split(New Char() {"="c})




Posted 26 January 2013 - 10:39 AM
Dim chars As String() = TextBox1.Text.Split(New Char() {"="c})
Posted 31 January 2013 - 02:07 PM
Dim whole As String = "5x=2*63"
Dim chars() As String = whole.Split("=")
This post has been edited by xilith117: 31 January 2013 - 02:08 PM
Posted 31 January 2013 - 02:18 PM
xilith117, on 31 January 2013 - 04:07 PM, said:
Dim whole As String = "5x=2*63"
Dim chars() As String = whole.Split("=")
Dim whole As String = "5x=2*63"
' left character
Dim string1 As String = whole.Substring(whole.IndexOf("=") - 1, 1)
' right character
Dim string2 As String = whole.Substring(whole.IndexOf("=") + 1, 1)
This post has been edited by ybadragon: 31 January 2013 - 02:30 PM
Posted 31 January 2013 - 02:26 PM
xilith117, on 31 January 2013 - 03:07 PM, said:
Dim whole As String = "5x=2*63"
Dim chars() As String = whole.Split("=")
Dim whole As String = "5x=2*63"
Dim chars() As String = whole.Split(CChar("="))
Dim leftChar As Char = CChar(chars(0).Substring(chars(0).Length - 1))
Dim rightchar As Char = CChar(chars(1).Substring(0, 1))
Posted 31 January 2013 - 04:02 PM
Quote
|
|
Query failed: connection to localhost:3312 failed (errno=111, msg=Connection refused).
|
