如何将一组文本值分配给数组?我试过的一切都不起作用!

Months = Array("Jan", "Feb", ..., "Dec")

我试过的其他人不起作用!

最佳答案

这是关于 VB 的一些内容:http://www.devx.com/vb2themax/Tip/18322


  Dim strArray(0 To 3) As String
  strArray(0) = "Spring"
  strArray(1) = "Summer"
  strArray(2) = "Fall"
  strArray(3) = "Winter"


  Dim varArray() As Variant
  varArray() = Array("Spring", "Summer", "Fall", "Winter")


  Dim varArray() As String
  ' arrays returned by Split are always zero-based
  varArray() = Split("Spring;Summer;Fall;Winter", ";")

关于arrays - 如何将一组文本值分配给字符串数组?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/507653/

10-09 15:21