编程如何实现求数组上界(看程序说话)
下面的红色字体不知道怎么编,想求UBound("bjh" & m & n)的上界,但是语法不对,请指教,谢谢For m = 97 To 102
t = Chr(m)
For n = 1 To 3
Dim str As String
str = t & n
k = UBound("bjh" & str)
Print "k=" & k
For p = 1 To k
Print "p=" & p
If a = "bjh" & t & n & "(" & p & ")" Then
If cdia(b) <= "rang_" & t & n & "(" & 1 & ")" _
And cdia(b) >= "rang_" & t & n & "(" & 2 & ")" _
Or cdia(b) <= "rang_" & t & n & "(" & 3 & ")" _
And cdia(b) >= "rang_" & t & n & "(" & 4 & ")" Then
fact = 1
Print a, b
Else: fact = 0
End If
End If
Next p
Next n
Next m