Advertisement
Guest User

Untitled

a guest
Jul 26th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. Sub Main()
  2.  
  3. Dim s As String
  4. Dim Result As String
  5.  
  6. s = "Tony"
  7. Result = LTrim(s)
  8.  
  9. msgbox(Result)
  10.  
  11. Result = Right(s, Len(s) - 2);
  12.  
  13. Dim s As String = "Anthony"
  14. Dim index As Integer = 2
  15.  
  16. Debug.Print(StrReverse(StrReverse(s).Remove(2)))
  17.  
  18. X$ = RIGHT$(V$, 2) ' get the ending 2 chars of string
  19. X$ = LEFT$(V$, 2) ' get the leading 2 chars of string
  20. X$ = MID$(V$, 2, 2) ' get 2 chars from the inside of string
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement