Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Sub Main()
- Dim s As String
- Dim Result As String
- s = "Tony"
- Result = LTrim(s)
- msgbox(Result)
- Result = Right(s, Len(s) - 2);
- Dim s As String = "Anthony"
- Dim index As Integer = 2
- Debug.Print(StrReverse(StrReverse(s).Remove(2)))
- X$ = RIGHT$(V$, 2) ' get the ending 2 chars of string
- X$ = LEFT$(V$, 2) ' get the leading 2 chars of string
- X$ = MID$(V$, 2, 2) ' get 2 chars from the inside of string
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement