Now we can create Array in modern style in VB script and JavaScript also, using this way we can reduce line of code, to make our program efficiency. For Example:
Create Array in JavaScript:
Var NakshtraName
NakshtraName = new Array("Ashwini", "Bhairini", "Krittika", "Rohini", "Mrigashirsha", "Aardhra", "Punarvasu", "Pushya", "Ashlesha", "Magha", "Purva Phalguni", "Uttara Phalguni", "Hastha", "Chitra", "Swati", "Vishaka", "Anuradha", "Jyestha", "Moola", "Purva Ashadha", "Uttara Ashadha", "Shravana", "Dhanista", "Shathabhisha", "Purva Bhadrapad", "Uttara Bhadrapada", "Revati");
Create Array in VB Script:
Dim NakshtraName
NakshtraName = Array("Ashwini", "Bhairini", "Krittika", "Rohini", "Mrigashirsha", "Aardhra", "Punarvasu", "Pushya", "Ashlesha", "Magha", "Purva Phalguni", "Uttara Phalguni", "Hastha", "Chitra", "Swati", "Vishaka", "Anuradha", "Jyestha", "Moola", "Purva Ashadha", "Uttara Ashadha", "Shravana", "Dhanista", "Shathabhisha", "Purva Bhadrapad", "Uttara Bhadrapada", "Revati")
Let us Play with HTML 5, CSS Know more about Classic ASP
Tuesday, March 20, 2012
Create Array in New Style Using VB Script / Java Script
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment