VB.NET中具有多列的数组 [英] Array with multi columns in VB.NET

查看:76
本文介绍了VB.NET中具有多列的数组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好所有访客
通常,vb.net中的数组具有一维(一列)和二维(两列),如果我想创建更多然后两列,我该怎么办?

感谢

Hi all visitors
Normally,array in vb.net has one dimensional(one column) and two dimensional(two column),if i want to create more then two columns, how can i do?

thanks

推荐答案

数组没有列". :-)

.NET中可以有两种Rank-2数组-矩形和锯齿状.矩形阵列具有固定的尺寸.使用维的知识,它更像是将1级常规数组解释(索引)为2级数组.锯齿状的数组只是数组的数组.因此每个内部"数组都可以有其各自的长度.

请参阅此文章,以了解其在VB.NET代码中的外观和工作方式: http://visualbasic.about. com/od/quicktips/qt/initjaga.htm [ ^ ].

—SA
Arrays do not have "columns". :-)

You can have two kinds of rank-2 arrays in .NET — rectangular and jagged. The rectangular array has fixed dimension. It''s more like a regular rank-1 array interpreted (indexed) as rank-2 array, using the knowledge of the dimensions. The jagged array is simply an array of arrays; so each "inner" array can have its individual length.

See this article to get how it looks and works in VB.NET code: http://visualbasic.about.com/od/quicktips/qt/initjaga.htm[^].

—SA


一个数组可以有两个以上的维度"-请参见多维数组
You can have more than two ''dimensions'' to an array - see multi-dimensional arrays here[^].


这篇关于VB.NET中具有多列的数组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆