以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  FoxTable 中如何定义二维数组?  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=61290)

--  作者:jerzhh
--  发布时间:2014/12/10 13:44:00
--  FoxTable 中如何定义二维数组?

如题


--  作者:有点甜
--  发布时间:2014/12/10 14:03:00
--  
Dim ary(2,3) As String
--  作者:jerzhh
--  发布时间:2014/12/10 14:51:00
--  

假设

Dim Item(X,Y) As String
Output.Show(Item.Length)

 

为什么结果是 (X+1)*(Y+1) ?

 

另:如何获得X维度和Y维度的长度?

 

 

[此贴子已经被作者于2014-12-10 14:52:22编辑过]

--  作者:有点甜
--  发布时间:2014/12/10 15:47:00
--  
Dim Item(3,4) As String
Output.Show(ubound(Item, 1))
Output.Show(ubound(Item, 2))