Bugs in VBScript GetRef()

M

Mike Schinkel

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
 
M

[MSFT]

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.)
 
B

Bob Barrows

Mike said:
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
 
M

Mike Schinkel

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
 
M

[MSFT]

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.)
 
M

Mike Schinkel

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
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top