28 th Jun 2022 21:19:43
Hai Friend , Sign In
Home
World
INDIA
Chennai City
Games
Developers
Members
Birthday
Search
Astrology
G. K.
Story
Tamil Nadu Government Holiday List 2018 in English and Tamil   *   Trichy: Wanted - PHP, MySql Programmers. Contact trichy people only 84894 28 444.   *   Indian Railways New Train Number List [Search / Enquiry / Locator / Finder]   *   பன்றிக் காய்ச்சல் பற்றி அறிந்து கொள்ளுங்கள் (Swine Flu H1N1)
See Also
Dim Statement Dim Statement
Array Functions Array Functions
Visual Basic Functions Visual Basic Functions
Visual Basic Home Visual Basic Home
 
Description  Syntax  Return Datatype  Example  Migration

Array Function - Visual Basic 6.0 (VB 6.0)

Returns a Variant containing an array.
Syntax:
Array(arglist)
Parameter Description
arglist Required. A list (separated by commas) of values that is the elements in the array.

Return Data type:
Array (Variant)
Example:
Dim a, b
a = Array(2, 4, 6, 8, 10)
Statement Result Remark
a(0) 2  
a(1) 4  
a(2) 6  
a(LBound(a)) 2 LBound(a)=0
a(UBound(a)) 10 UBound(a)=4
a(-1) Error Subscript out of range
a(5) Error Subscript out of range
a(Null) Error Invalid use of Null
a(b) 0 Uninitialized Variable (b=Empty=0)
 
Option Base 1
Dim a, b
a = Array(2, 4, 6, 8, 10)
Statement Result Remark
a(0) Error Subscript out of range
a(1) 2  
a(2) 4  
a(LBound(a)) 2 LBound(a)=1
a(UBound(a)) 10 UBound(a)=5
a(-1) Error Subscript out of range
a(5) 10  
a(Null) Error Invalid use of Null
a(b) Error Subscript out of range (b=Empty=0)
Go to top
 

Migration from Visual Basic 6.0 (VB 6.0) to
  Array Function in VB Script (VBS)
  Array Function in JScript (JS)
  Array Function in ASP (Active Server Page)
  Array Function in PHP Script
  Array Function in MS-Access
  Array Function in MS SQL Server
  Array Function in Oracle
  Array Function in C Language
  Array Function in C++ Language
  Array Function in Foxpro
  Array Function in Fortran
  Array Function in MS Excel Sheet
Go to top
 





© 2021 Chennaiiq.com. All Rights Reserved.

4281