IBM Lotus Symphony
|
Renvoie la limite supérieure d'une matrice.
UBound (ArrayName [, Dimension])
Nombre entier
ArrayName : nom de la matrice pour laquelle vous voulez déterminer la limite supérieure (Ubound) ou inférieure (LBound).
[Dimension] : nombre entier indiquant la dimension pour laquelle la limite supérieure (Ubound) ou inférieure (LBound) doit être renvoyée. Si aucune valeur n'est indiquée, c'est la limite de la première dimension qui est renvoyée.
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()) REM Renvoie 10
Print UBound(sVar()) REM Renvoie 20
Print LBound(sVar(),2) REM Renvoie 5
Print UBound(sVar(),2) REM Renvoie 70
end Sub