Returns the maximum value in the array

xiaoxiao2021-03-06  87

DIM LNGMAXINDEX AS Longdim i as long

LNGMAXINDEX = LBound (a)

For i = lbound (a) 1 to Ubound (a) IF a (i)> a (lngmaxindex) Then LngmaxIndex = I end ifxext i

A (LNGMAXINDEX) is the maximum value

转载请注明原文地址:https://www.9cbs.com/read-105459.html

New Post(0)