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 
  • n

  • No Arguments are given 0 length array is created
  • n

n

nExample:-

n

    n

  • Dim aNum
  • n

  • aNum = Array(“Helping”,”People”,”Learn”,”uftHelp.com”)
  • n

  • Msgbox aNum(0) ‘Returns Helping
  • n

  • Msgbox aNum(1) ‘Returs People
  • n

  • Msgbox aNum(2) ‘Returns Learn
  • n

  • Msgbox aNum(3) ‘Returns uftHelp.com
  • n

  • Msgbox aNum(4) ‘Throws Subscript out of range exception as Array has 4 values
  • n

n

Difference between Array and Dictionary
nInterview Questions on Array?

Was this article helpful?
YesNo

Similar Posts