Visual BASIC (6) Arrays - 國立高雄大學資訊工程學系網站 • 公告
8 UBound和LBound函數 •UBound函數可取得陣列的最大註標值;LBound函數可取得陣列的最小註標值。Dim A(), I As Integer A=Array(7, 12, 3, 18, 1, 6, 11, 18, 9) Temp = A(LBound(A)) For I = LBound(A)+1 to UBound(A) If Temp > A(I) Then Temp = A(I)...