How Do I Use VBScript to Strip the First n Characters of a String?

前端 未结 4 847
温柔的废话
温柔的废话 2020-12-11 01:45

How do I use VBScript to strip the first four characters of a string?

Ss that the first four characters are no longer part of the string.

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-11 02:07

    Try this (just create sample.vbs with this content):

    Option Explicit
    
    Dim sText
    
    sText = "aaaaString"
    sText = Right(sText, Len(sText) - 4)
    
    MsgBox(sText)
    

提交回复
热议问题