16,555
社区成员
发帖
与我相关
我的任务
分享
dim Str_(3) as string = new string(){"a","b","c"} '字符串类型
dim int_(3) as integer = new integer(){1,2,3}'数值类型
removeat(of string)(str_,2)
removeat(of integer)(int_,2)
private sub removeat(of t)(byref val as t,byval index as integer)'定义泛类型的方法,将数据更改为指定维度
redim preserve val(index)' 这里指定传递的维度为当前维度长度
For each value as object in val
.........
next
.......
end sub