Why do I get this problem ? 
Author Message
 Why do I get this problem ?

Hi all !

My problem is as follows: Trying to call a method of an object from
VBScript I get : "Type mismatch" message. BUT in VB itself, calling
the same method on the same kind of object, with the same arguments,
everything works fine.

The VBScript code is as follows:

dim myObj

set myObj = CreateOject("ArielDataServer.ArielObject")
myObj.LoadMyStuff myString, myErrorCode

Thanks in advance
 Ariel Tikotzki



Thu, 19 Dec 2002 03:00:00 GMT  
 Why do I get this problem ?
Try CStr on the string parameter when calling the object from ASP

JF

Quote:

> Hi all !

> My problem is as follows: Trying to call a method of an object from
> VBScript I get : "Type mismatch" message. BUT in VB itself, calling
> the same method on the same kind of object, with the same arguments,
> everything works fine.

> The VBScript code is as follows:

> dim myObj

> set myObj = CreateOject("ArielDataServer.ArielObject")
> myObj.LoadMyStuff myString, myErrorCode

> Thanks in advance
>  Ariel Tikotzki



Thu, 19 Dec 2002 03:00:00 GMT  
 Why do I get this problem ?

Type Mismatch When Passing Parameters from ASP to VB
http://support.microsoft.com/view/dev.asp?kb=244012

Applies to any script host, not just ASP...

--
Michael Harris
MVP Scripting

Hi all !

My problem is as follows: Trying to call a method of an object from
VBScript I get : "Type mismatch" message. BUT in VB itself, calling
the same method on the same kind of object, with the same arguments,
everything works fine.

The VBScript code is as follows:

dim myObj

set myObj = CreateOject("ArielDataServer.ArielObject")
myObj.LoadMyStuff myString, myErrorCode

Thanks in advance
 Ariel Tikotzki



Thu, 19 Dec 2002 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Getting EPSI from EPSF - Can it be done?

2. Why why why why?

3. why why why why

4. MCI Control Gets Into a Tizzy - Done Events Not Being Generated

5. Character 15 gets changed to character 12: why?

6. Please Help: Why am I now getting this error

7. Why am I getting this error ?

8. Cookie not getting read properly...why?

9. WHY, WHY, WHY!!!!!

10. problems doing graphics in PS

11. Syntax problem or, can it be done?

12. why am I getting this error??

 

 
Powered by phpBB® Forum Software