-1
我該在VB腳本中裁剪一個字符串嗎?如何裁剪一個字符串?
實施例:
myString = "object(value)"
newString = crop myString then remove the string inside '()'
echo newString
那麼輸出將是字符串:object()
我該在VB腳本中裁剪一個字符串嗎?如何裁剪一個字符串?
實施例:
myString = "object(value)"
newString = crop myString then remove the string inside '()'
echo newString
那麼輸出將是字符串:object()
通過使用Mid
和InStr
myString = "object(value)"
newString = Mid(myString, 1, InStr(myString, "(")) & ")"
這假定只存在一個在的(
發生串。
經過測試,它的工作!謝謝! – ladiesman1792 2014-12-03 07:47:18