How in ASP when defining an array to immediately set its values? Some manuals describe how
Dim a()={1,2,3} but it fails (causes an error).
How in ASP when defining an array to immediately set its values? Some manuals describe how
Dim a()={1,2,3} but it fails (causes an error).
Perhaps you need to write like this -
Dim a() as integer = {1,2,3} In Classic ASP (VBScript) is done like this:
Dim arr arr = Array(1, 4, 19) In ASP.NET (VB.NET) it is done like this:
Dim arr as int32() = {1, 6, 10} Source: https://ru.stackoverflow.com/questions/32004/
All Articles