For x = 2 To (Len(Text1.Text)) z = Mid(Text1.Text, x, 1) Select Case z Case "+", "-", "/", "*" HopIn: a = Mid(p_Text1, y, x - y) Select Case Hold Case "+" b = b + CSin(a) Case "-" b = b - CSin(a) Case "/" b = b / CSin(a) Case "*" b = b * CSin(a) Case Else b = a End Select If HopOut Then Exit For Hold = z 'previous math value y = x + 1 'start number position End Select Next
If Hold <> "" And HopOut = False Then HopOut = True GoTo HopIn End If
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.