Vb-Scripting Array Function – User friendly Tech help
Function Name:- Array
n
nMeaning :- Used to creating Arrays(Returns Array type Variant)
n
n
nSyntax:- Array(Arguments)n
- n
- Arguments are comma separated
- No Arguments are given 0 length array is created
n
n
n
nExample:-
n
- n
- Dim aNum
- aNum = Array(“Helping”,”People”,”Learn”,”uftHelp.com”)
- Msgbox aNum(0) ‘Returns Helping
- Msgbox aNum(1) ‘Returs People
- Msgbox aNum(2) ‘Returns Learn
- Msgbox aNum(3) ‘Returns uftHelp.com
- Msgbox aNum(4) ‘Throws Subscript out of range exception as Array has 4 values
n
n
n
n
n
n
n
n
Difference between Array and Dictionary
nInterview Questions on Array?