- Option Explicit
- Dim NewRep As String
- Dim x As Integer
-
- Private Sub Command1_Click()
- NewRep = Text1
- Text2 = ""
- x = Len(NewRep)
- If Len(NewRep) > 1 Then x = x - 1
- Do Until Mid(NewRep, x, 1) = "/"
- x = x - 1
- Loop
-
- Text2 = Mid(NewRep, 1, x)
- End Sub
Option Explicit
Dim NewRep As String
Dim x As Integer
Private Sub Command1_Click()
NewRep = Text1
Text2 = ""
x = Len(NewRep)
If Len(NewRep) > 1 Then x = x - 1
Do Until Mid(NewRep, x, 1) = "/"
x = x - 1
Loop
Text2 = Mid(NewRep, 1, x)
End Sub