hi
is there anyway passing array variable which is declared in vbscript
to javascript?
i made a sample code and i found that variant type variables which is
declared in vbscript are type 'unknown' in javascript
let me show some example
<script language="vbscript">
Dim arr(1)

arr(0) = "this"
arr(1) = "that"
</script>

<script language="javascript">
alert(typeof(arr));
</script>

then message box with "unknown" will be poped up

i tested this code with other type but all but variant type are just
fine.
is there anyway to solve this problem?

ps.this problem occured when i try to passing parameter in activex's
event to some event handling script code. any idea will be appreciated

have a nice day :)

Re: is there anyway passing array variable of vbscript to javascript by Steve

Steve
Fri Feb 06 06:04:52 CST 2004

bucket79 wrote:
> is there anyway passing array variable which is declared in vbscript
> to javascript?

VBArray Object
http://msdn.microsoft.com/library/en-us/script56/html/js56jsobjvbarray.asp

Download Windows Script Documentation
http://www.microsoft.com/downloads/details.aspx?FamilyId=01592C48-207D-4BE1-8A76-1C4099D7BBB9

--
Steve

It is not fair to ask of others what you are unwilling to do yourself. -Eleanor
Roosevelt