Visual Basic, .NET, ASP, VBScript
 

   
   
     

Форум - Общий форум

Страница: 1 |

 

  Вопрос: Как создать массив элементов... Добавлено: 12.01.03 10:13  

Автор вопроса:  Диман | Web-сайт: www.dimon1int.narod.ru | ICQ: 224590251 
Вот как создать одномерный массив элементов(например, Command Button), я знаю. А вот как создать двумерный массив? Или это невозможно :(

Ответить

  Ответы Всего ответов: 1  

Номер ответа: 1
Автор ответа:
 Janek



Вопросов: 41
Ответов: 62
 Профиль | | #1 Добавлено: 12.01.03 20:50

есть классная штука - называется MSDN

все, что ниже, это оттуда

To declare a single-dimensional array variable

In your declaration, add one pair of parentheses after the variable name, as in the following example:

Dim MySingleArray() As Integer

To declare a multidimensional array variable

In your declaration, add one pair of parentheses after the variable name and place commas inside the parentheses to separate the dimensions, as in the following example:

Dim My4DArray(,,,) As Short ' Four-dimensional array.

To declare a jagged array variable

In your declaration, add as many pairs of parentheses after the variable name as there are levels of nested arrays, as in the following example:

Dim MyJaggedArray()()() As Byte ' Array of arrays of Byte arrays.

Ответить

Страница: 1 |

Поиск по форуму



© Copyright 2002-2011 VBNet.RU | Пишите нам