How to find out the type of a jscript control returned object?

Discussion in 'Scripting' started by Leo Yee, Feb 1, 2004.

  1. Leo Yee

    Leo Yee Guest


    I use jscript control and C++ in my application. I found a troublesome
    problem that I always got a IDispatch variant when a script function
    returned a new String object or a new Number object from the script file.

    I know I can use instanceof to decide what the object type is but I have to
    write a 'GetObjectType' function in script file and use the script control
    to run the function to get the result. It's too slow and not convinient.

    My question is if there is a way to decide what the IDispatch variant is in

    Thanks in advance.

    Leo Yee
    Leo Yee, Feb 1, 2004
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.