使用 VB 从数组中的每个项目中删除字符串

Remove string from each item on array using VB

基本上我有一个看起来像这样的数组

array = ("Hello_123","Hello_234","Hello_345")

我想从数组中删除单词“Hello_”,这样结果就变成了

array = ("123","234","345")

请问我该怎么做?

如@user692942 所述,遍历数组并使用 Replace() 更新值,如下所示:

MyArray = Array("Hello_123","Hello_234","Hello_345")
For i = 0 to UBound(MyArray)
  MyArray(i) = Replace(MyArray(i),"Hello_","")
Next