Can I get a little help from someone who knows the code, to confirm my
experimental observations? Then I can get the documentation updated, and
fix the BASIC code.
The VarType function can be used on a variant to return the type of data
therein, as documented. However, when the variant contains an array,
VarType apparently returns the value x'2000' (decimal 8192) plus the
"simple" type of the array variables, which is not documented.
What I'm seeing: If a variant is set with the Array function, VarType
returns a 200C (8204) code, indicating type "variant", which is more or
less useless. If the variant is set to an existing array:
Dim ai(2) as Integer : ai(0) = 1 : v = ai()
then the VarType returns 2002 (8194), where "2" is the type code for
"integer". Similarly, explicit string arrays return 2008 (8200). Values
like these occur in property sets.
This affects the OLH and wiki documentation, and BASIC code on the wiki
and in the released macro libraries. I'll update the wiki, and file
issues for the rest, once I'm sure what to say.
--
/tj/
T. J. Frazier
Melbourne, FL
(TJFrazier on OO.o)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org