28 th Jun 2022 20:48:26
Hai Friend , Sign In
Chennai City
G. K.
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
UBound Function UBound Function
Dim Statement Dim Statement
ReDim Statement ReDim Statement
Array Functions Array Functions
Visual Basic Functions Visual Basic Functions
Visual Basic Home Visual Basic Home
Description  Syntax  Return Datatype  Example  Migration

LBound Function - Visual Basic 6.0 (VB 6.0)

Returns a Long containing the smallest available subscript for the indicated dimension of an array.
LBound(arrayname[, dimension])
Parameter Description
arrayname Required. Name of the array variable.
dimension Optional. Long. Default 1. Whole number indicating which dimension's lower bound is returned.
Return Data type:

Dim A(50, 10, 3)
Dim B(50, 5 to 10, -3 to 3)

Statement Result Remark
LBound(A) 0 Default first dimension
LBound(A, 1) 0  
LBound(A, 2) 0  
LBound(A, 3) 0  
LBound(A, 4) Error Subscript out of range
LBound(A, null) Error Invalid use of null
LBound(null, 1) Error Expected: variable
LBound(B) 0 Default first dimension
LBound(B, 1) 0  
LBound(B, 2) 5  
LBound(B, 3) -3  
LBound(B, "1") 0  
LBound(unknown, 3) Error Type mismatch
Go to top

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

© 2021 Chennaiiq.com. All Rights Reserved.