Cool way of creating arrays in ASP (VBScript) – advanced
It’s a small function which I will introduce today but very useful. When working recently on ajaxed i discovered that its often possible to pass an array or a primitive type as an argument to a function. Lets say you have a function println(msg) which prints out its argument as a line to the screen. When the argument is an array then it treats each field as a line. So it should be possible to call the function with those variations:
println("something")
println(array("some", "more", "lines"))
Lets see how we solve the solution in a nice way and how we will be able to create a function which is simply called [] (which is common syntax for an array in other languages).
Continue reading ‘Cool way of creating arrays in ASP (VBScript) – advanced’ »

