Bugs in VBScript GetRef()

Discussion in 'ASP General' started by Mike Schinkel, Feb 29, 2004.

  1. Does anyone know if there are bugs in VBScript's GetRef()? I'm using
    VBScript Version 5.6.8515 on Win2003Server w/ASP.

    Sometimes it returns an object that VarType() says is a vbObject. Other
    times it returns VarType() is vbEmpty. This is driving me mad!

    Also, does anyone know what the properties and methods are for the object
    returned by GetRef()?

    TIA.

    -Mike
     
    Mike Schinkel, Feb 29, 2004
    #1
    1. Advertising

  2. Mike Schinkel

    [MSFT] Guest

    Hi Mike,

    Thank you for using the community. From your description, the function
    GetRef() returns incorrect result vbEmpty randomly and you suspect this may
    be bug. I search in the database, but I haven't found this is a known bug,
    and there isn't a similar one also. As we know function GetRef() will
    return a reference to a function based a name string. When it return
    vbEmpty, it mean it failed to find the function. I suggest you may double
    check the parameter string you passed into GetRef(), to see if there is
    such a function in current module.

    If you found a solid way to reproduce the problem, please let me know. With
    these information, we can perform deep research on the issue to see if it
    is bug.

    Regards,

    Luke
    Microsoft Online Support

    Get Secure! www.microsoft.com/security
    (This posting is provided "AS IS", with no warranties, and confers no
    rights.)
     
    [MSFT], Mar 1, 2004
    #2
    1. Advertising

  3. Mike Schinkel

    Bob Barrows Guest

    Mike Schinkel wrote:
    > Does anyone know if there are bugs in VBScript's GetRef()? I'm using
    > VBScript Version 5.6.8515 on Win2003Server w/ASP.
    >
    > Sometimes it returns an object that VarType() says is a vbObject.
    > Other times it returns VarType() is vbEmpty. This is driving me mad!
    >


    Show us how to reproduce the problem. This has never happened to me.

    > Also, does anyone know what the properties and methods are for the
    > object returned by GetRef()?
    >



    Does GetRef even work in server-side code? You may want to pose this
    question in m.p.scripting.vbscript. It's a little OT for this newsgroup.
    You'll be more likely to find the vbscript experts over there.

    Bob Barrows
    --
    Microsoft MVP - ASP/ASP.NET
    Please reply to the newsgroup. This email account is my spam trap so I
    don't check it very often. If you must reply off-line, then remove the
    "NO SPAM"
     
    Bob Barrows, Mar 1, 2004
    #3
  4. Bob:

    Thanks for the reply. Forgive my density, but what does "OT" mean?
    Also, can you please review my reply to Luke on this thread? Let me know if
    you have any insight. Thanks in advance.

    -Mike


    "Bob Barrows" <> wrote in message
    news:eBK8EH3$...
    > Mike Schinkel wrote:
    > > Does anyone know if there are bugs in VBScript's GetRef()? I'm using
    > > VBScript Version 5.6.8515 on Win2003Server w/ASP.
    > >
    > > Sometimes it returns an object that VarType() says is a vbObject.
    > > Other times it returns VarType() is vbEmpty. This is driving me mad!
    > >

    >
    > Show us how to reproduce the problem. This has never happened to me.
    >
    > > Also, does anyone know what the properties and methods are for the
    > > object returned by GetRef()?
    > >

    >
    >
    > Does GetRef even work in server-side code? You may want to pose this
    > question in m.p.scripting.vbscript. It's a little OT for this newsgroup.
    > You'll be more likely to find the vbscript experts over there.
    >
    > Bob Barrows
    > --
    > Microsoft MVP - ASP/ASP.NET
    > Please reply to the newsgroup. This email account is my spam trap so I
    > don't check it very often. If you must reply off-line, then remove the
    > "NO SPAM"
    >
    >
     
    Mike Schinkel, Mar 2, 2004
    #4
  5. Mike Schinkel

    [MSFT] Guest

    Hi Mike,

    The features you listed didn't included in VBscript currently. If you
    really need them, you take a look at script hosting technology or consider
    migrating to .NET and achieve them with Reflection.

    Luke
    Microsoft Online Support

    Get Secure! www.microsoft.com/security
    (This posting is provided "AS IS", with no warranties, and confers no
    rights.)
     
    [MSFT], Mar 2, 2004
    #5
  6. Thanks.
    The plan is ultimately to move to .NET, but our team just isn't ready yet
    for many reasons.
    Not the least is Whidbey is much better than current, and we want to wait
    for that.

    Will VBScript be updated at all? Any chance those functions might find
    their way into VBScript (I know you can't answer, but you could pass on to
    the people who could.)

    -Mike


    "[MSFT]" <> wrote in message
    news:...
    > Hi Mike,
    >
    > The features you listed didn't included in VBscript currently. If you
    > really need them, you take a look at script hosting technology or consider
    > migrating to .NET and achieve them with Reflection.
    >
    > Luke
    > Microsoft Online Support
    >
    > Get Secure! www.microsoft.com/security
    > (This posting is provided "AS IS", with no warranties, and confers no
    > rights.)
    >
     
    Mike Schinkel, Mar 2, 2004
    #6
  7. Mike Schinkel

    [MSFT] Guest

    [MSFT], Mar 3, 2004
    #7
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. aniket

    Vhdl Cli bugs ??

    aniket, Sep 27, 2003, in forum: VHDL
    Replies:
    0
    Views:
    536
    aniket
    Sep 27, 2003
  2. =?Utf-8?B?TkdN?=
    Replies:
    1
    Views:
    756
  3. angus
    Replies:
    1
    Views:
    543
    angus
    May 14, 2004
  4. 9.co.uk

    (vbscript) GetRef and Response.Write

    9.co.uk, Nov 11, 2005, in forum: ASP General
    Replies:
    1
    Views:
    145
    9.co.uk
    Nov 11, 2005
  5. Josef 'Jupp' Schugt

    Still use 'ruby-bugs' for Ruby bugs?

    Josef 'Jupp' Schugt, Nov 4, 2004, in forum: Ruby
    Replies:
    2
    Views:
    181
    Tom Copeland
    Nov 4, 2004
Loading...

Share This Page