adsense


Showing posts with label ADVANCE VB SCRIPT DICTIONARY OBJECTS. Show all posts
Showing posts with label ADVANCE VB SCRIPT DICTIONARY OBJECTS. Show all posts

Thursday, 12 November 2015

ADVANCE VB SCRIPT DICTIONARY OBJECTS PAGE 112

COMPUTER LANGUAGES HTML,C,C++.JAVA,.NET AND MULTIMEDIA basics and programs click home button




ADVANCE VB SCRIPT DICTIONARY OBJECTS





Dictionary Objects 



A Dictionary object can be compared to a PERL associative array. 
Any Values can be stored in the array and each item is associated 
with a unique key. The key is used to retrieve an individual 
element and it is usually an integer or a string, but can be anything except an array. 
Syntax 
VBScript classes are enclosed within Class .... End Class. 
Dim variablename 
Set variablename = CreateObject("Scripting.Dictionary") 
variablename.Add (key, item) 
Example 
<!DOCTYPE html> 
<html> 
<body> 
<script language="vbscript" type="text/vbscript"> 
 
   Dim obj_datadict   ' Create a variable. 
   Set obj_datadict = CreateObject("Scripting.Dictionary") 
   obj_datadict.Add "a", "Apple"   ' Add some keys and items. 
   obj_datadict.Add "b", "Bluetooth" 
   obj_datadict.Add "c", "Clear" 
 
</script> 
</body> 
</html> 
There are various methods associated with DataDictionary Objects 
which enable the developers to work with dictionary objects seamlessly.