Thursday, 15 January 2015

Convert VBScript VT_ARRAY|VT_U1 Variant function parameter to JavaScript -



Convert VBScript VT_ARRAY|VT_U1 Variant function parameter to JavaScript -

i trying convert next function vbscript javascript:

object.utilblobtovariant(variant *pv, long blobpointer, long blobsize)

where pv defined as:

a variant returned type (vt_array|vt_u1)

the utilblobtovariant function part of 3rd party com library, can not alter definition.

the 2 long parameters work fine in javascript version of function, parameter pv gives me "type mismatch" error afterwords because pv comes undefined.

object activex object, target strictly net explorer because of , other com dependencies. have tried passing var, or instantiating empty array [] or empty object {} none of these have worked. possible?

try in way

for illustration javascript code

function utilblobtovariant(blobpointer,blobsize) { // code here @ end: homecoming pv; }

javascript vbscript variant

No comments:

Post a Comment