Is it possible to get the size of an array when all I have is a refnum to the array control. I know I can get the value and pass it through the 'array size' function. However, this requires me to cast the type of value from a variant to whatever the type of the array is, and I would prefer not to do that.
The code in question is implementing binding a slide control to an array control to act as a scrollbar for the array. With the exception of this one problem, I was able to implement it entirely independant of the type of the array. Since I will be using this functionality for several arrays holding different things, I would like to keep it that way.
Can I cast the varient using only data in the propery node, such as class ID? Is there ano
ther way to get the size of an array that does not involve casting? Any other ideas?