Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
ISArray() will return TRUE
Dim myArray() Msgbox IsArray(myArray) If this post helps click Yes --------------- Jacob Skaria "Stefi" wrote: Hi All. I want to use a one dimension dynamic array, so my declaration is: Dim myarray() Redim myarray(x) changes it to a real array. But how can I determine the state of myarray when it was not redimmed yet . Thanks, Stefi |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The problem is that ISArray() returns TRUE either after Dim myarray() or
Redim Preserve myarray(x). I want to determine that Redim Preserve myarray(x) has already been issued or not. Thanks, Stefi €˛Jacob Skaria€¯ ezt Ć*rta: ISArray() will return TRUE Dim myArray() Msgbox IsArray(myArray) If this post helps click Yes --------------- Jacob Skaria "Stefi" wrote: Hi All. I want to use a one dimension dynamic array, so my declaration is: Dim myarray() Redim myarray(x) changes it to a real array. But how can I determine the state of myarray when it was not redimmed yet . Thanks, Stefi |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Redim doesn't change the variable to a real array it creates a second
variable with the same name as an array. You should declare the variable as a variant so you don't have two variables with the same name from Dim myArray() to Dim MyArray as Variant 'note - no parenthesis "Jacob Skaria" wrote: ISArray() will return TRUE Dim myArray() Msgbox IsArray(myArray) If this post helps click Yes --------------- Jacob Skaria "Stefi" wrote: Hi All. I want to use a one dimension dynamic array, so my declaration is: Dim myarray() Redim myarray(x) changes it to a real array. But how can I determine the state of myarray when it was not redimmed yet . Thanks, Stefi |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Prevent cell/array references from changing when altering/moving thecell/array | Excel Discussion (Misc queries) | |||
Redimming an array dynamically assigned from range (how to redim first dimension of a 2-D array? /or/ reverse the original array order) | Excel Programming | |||
meaning of : IF(Switch; Average(array A, array B); array A) | Excel Worksheet Functions | |||
Array problem: Key words-Variant Array, single-element, type mismatch error | Excel Programming | |||
Array problem: Key words-Variant Array, single-element, type mismatch error | Excel Programming |