Thursday 25 September 2014

Function return array


Function GetDesiredStrings()
     myArray = Array(21,42,51,33,15)
    GetDesiredStrings = myArray
End Function

arrStagedIDs = GetDesiredStrings()

For x=0 To Ubound(arrStagedIDs)
    MsgBox arrStagedIDs(x)
Next

No comments:

Post a Comment