I have an activeX component written in visual basic, which uploads a file in the form of a bytearray, passing the result to a vbscript variable. This value is then passed to a further activeX component function, that requires a variant. On execution the web page displays a "Type Mismatch" error.
I've checked the data type of the variable holding the file contents, and it is a bytearray, as the upload component should return. It seems that although all variables are "variant" in vbscript, the vb activex component is receiving the parameter in the function call as a bytearray.
Can anyone tell me if this is because vbscript handles arrays differently to other data types, and is there some way I can ensure that what the second activex control receives is of the variant type?
Thanks in advance
I've checked the data type of the variable holding the file contents, and it is a bytearray, as the upload component should return. It seems that although all variables are "variant" in vbscript, the vb activex component is receiving the parameter in the function call as a bytearray.
Can anyone tell me if this is because vbscript handles arrays differently to other data types, and is there some way I can ensure that what the second activex control receives is of the variant type?
Thanks in advance