Variable fields, regardless of type, can be made dynamic if they are dimensioned by ReDim at the procedure level in subroutines or functions. Normally, you can only set the range of an array once and you cannot modify it. Within a procedure, you can declare an array using the ReDim statement with numerical expressions to define the range of the field sizes.
如果在过程级别的子例程或函数中通过 ReDim 确定了变量字段的大小，则无论具有何种类型，这些变量字段均可以成为动态字段。通常只能设置一次数组范围，并且设置之后不能修改。在此过程中，您可以使用 ReDim 语句通过数字表达式来声明一个数组，从而定义字段大小的范围。