Funkce LBound
Vrátà dolnà hranici pole.
Syntaxe:
LBound (NázevPole [, Rozměr])
Návratová hodnota:
CelĂ© ÄŤĂslo
Parametry:
NázevPole: Název pole, jehož hornà (Ubound) nebo dolnà (LBound) hranici chcete zjistit.
[RozmÄ›r]: CelĂ© ÄŤĂslo urÄŤujĂcĂ, u kterĂ©ho rozmÄ›ru chcete zjistit hornĂ (Ubound) nebo dolnĂ (LBound) hranici. Pokud nenĂ hodnota urÄŤena, pĹ™edpokládá se prvnĂ rozmÄ›r.
PĹ™Ăklad:
Sub ExampleUboundLbound
Dim sVar(10 To 20) As String
Print LBound(sVar())
Print UBound(sVar())
End Sub
Sub ExampleUboundLbound2
Dim sVar(10 To 20,5 To 70) As String
Print LBound(sVar()) ' Vrátà 10
Print UBound(sVar()) ' Vrátà 20
Print LBound(sVar(),2) ' Vrátà 5
Print UBound(sVar(),2) ' Vrátà 70
End Sub