What is the difference between Dim v As String() and Dim v() As String?

前端 未结 7 988
北恋
北恋 2020-11-27 08:03

This may sound trivial, but what is the difference between

Dim v As String()

and

Dim v() As String

in VB.

7条回答
  •  无人及你
    2020-11-27 08:43

    There is no difference in the meaning of the two.

    If you like to declare several variables in one dim statement, the second form provides more flexibility: dim v(),v2 as string allows you to declare array types and non array types in the same statement.

提交回复
热议问题