Гость
Целевая тема:
Создать новую тему:
Автор:
Форумы / Visual Basic [игнор отключен] [закрыт для гостей] / Массив / 5 сообщений из 5, страница 1 из 1
10.09.2004, 08:54:41
    #32688759
DЭN
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Массив
Cуществует ли какая нить функция очистки массива?
...
Рейтинг: 0 / 0
10.09.2004, 09:49:40
    #32688844
marvan
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Массив
ReDim a(0 to 10)
...
Рейтинг: 0 / 0
10.09.2004, 09:50:18
    #32688846
big-duke
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Массив
redim при условии , массив был объявлен dim a() as ...
...
Рейтинг: 0 / 0
10.09.2004, 10:17:40
    #32688935
Victosha
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Массив
Erase


(с выражением лица)
...
Рейтинг: 0 / 0
10.09.2004, 10:18:06
    #32688936
Дурак
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Массив
Долго мы будем сюда MSDN копировать?


Use Dynamic Arrays and Erase to Reclaim Memory
Consider using dynamic arrays instead of fixed arrays. When you no longer need the data in a dynamic array, use Erase or ReDim Preserve to discard unneeded data, and reclaim the memory used by the array. For example, you can reclaim the space used by a dynamic array with the following code:

Erase MyArray

Whereas Erase completely eliminates the array, ReDim Preserve makes the array smaller without losing its contents:

ReDim Preserve MyArray(10, smallernum)

Erasing a fixed-size array will not reclaim the memory for the array — it simply clears out the values of each element of the array . If each element was a string, or a Variant containing a string or array, then erasing the array would reclaim the memory from those strings or Variants, not the memory for the array itself.

(c) MSDN April 2001
...
Рейтинг: 0 / 0
Форумы / Visual Basic [игнор отключен] [закрыт для гостей] / Массив / 5 сообщений из 5, страница 1 из 1
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]