Wednesday, October 15, 2008

What is the present version of the VB Script we are using

Present version of VB Script is 5.6.

We can findout the version of vbscript you are using by going through the location
C:\Windows\System32, search for the file vbscript.dll, and right click on it and choose the properties. Move to the version tab.

You can findout the version number.

Wednesday, October 8, 2008

Can a function return dictonary object

Yes.

Functions can return a dictonary object.

Dim dicObj
Set dicObj = CreateObject("Scripting.Dictionary")

Set obj=getname
MsgBox(obj.item("name"))


Public Function getname()
dicObj.add "name","Uday Kumar"
Set getname=dicObj
End function