Most of my ParamArray functions have std Array versions that do the heavy lifting like this:Private Sub Command2_Click() Process 1, 2, 3End SubPrivate Sub Process(ParamArray A() As Variant) ProcessArray CVar(A)End SubPrivate Sub ProcessArray(B As Variant) Debug.Print UBound(B)End Sub虽然这对输出参数不起作用,所以是的,用 Array 替换 ParamArray 会变得非常快,对于输出参数非常不方便.This does not work for output params though, so yes replacing ParamArray with Array gets really fast very inconvenient for output params. 这篇关于使用 ParamArray(与 Variant 数组相比)有什么好处?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
07-04 04:35