Joe
Wed Feb 11 10:47:48 CST 2004
Hi,
"AF" <anonymous@discussions.microsoft.com> wrote in message
news:975083FA-3CC3-4B29-A62E-A5AFE1FBC124@microsoft.com...
| I've tried all of the built-in functions and they don't give me what I
need. isArray returns True because the array has been declared. I can deal
with this in other ways but I thought maybe there was a quick way that I
wasn't seeing. Maybe not.
| Thanks anyway.
There was a thread on this sometime back. The same problem occurs when
creating a variant array through Split("") and similar functions. There are
two issues: an array with a nominal dimension, but no declared elements
(i.e., ubound(...) is -1), and an array with no declared dimensions (i.e.,
ubound error). The only solution from the last thread was a library
function. Here's a simple one that I use to check data passed to my WSC
library methods.
function IsBndArray (uxArray)
' exposed utility method
' global variables: none
' calls: none
isBndArray= false: if NOT isarray(uxArray) then exit function
on error resume next
isBndArray= (ubound(uxArray)>vbTrue)
on error goto 0
end function
Joe Earnest
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (
http://www.grisoft.com).
Version: 6.0.564 / Virus Database: 356 - Release Date: 01-19-04