|
|
|
Redim Preserve
|
|||
|---|---|---|---|
|
#18+
Приветствуем Вас знатоки!! Пишу: Excell2003 Помогите разобраться с функцией "Redim Preserve a..y(......). Как-то интересно. То получается ее применить, то нет (ошибку пишет). Вот например: Есть заполненный массив и вот я решел сделать его двух мерным без потери содержимого. Redim Preserve массив (1 to n, 1 to 2) as string Не понятно в одном случаи делает, а в другом нет. Помогите разобраться!!!! ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 10.08.2006, 21:48:52 |
|
||
|
Redim Preserve
|
|||
|---|---|---|---|
|
#18+
Достаточно заглянуть в справку и вы найдете ответ на свой вопрос. ReDim StatementIf you use the Preserve keyword, you can resize only the last array dimension and you can't change the number of dimensions at all. For example, if your array has only one dimension, you can resize that dimension because it is the last and only dimension. However, if your array has two or more dimensions, you can change the size of only the last dimension and still preserve the contents of the array . The following example shows how you can increase the size of the last dimension of a dynamic array without erasing any existing data contained in the array. ReDim X(10, 10, 10) . . . ReDim Preserve X(10, 10, 15) В многомерных массивах можно менять только последнее измерение с сохранение содержимого массива. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 11.08.2006, 08:25:28 |
|
||
|
|

start [/forum/topic.php?fid=61&fpage=320&tid=2184484]: |
0ms |
get settings: |
7ms |
get forum list: |
19ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
43ms |
get topic data: |
12ms |
get forum data: |
3ms |
get page messages: |
46ms |
get tp. blocked users: |
1ms |
| others: | 214ms |
| total: | 353ms |

| 0 / 0 |
