Dim 颜色数组() As string,ys as string
ys=""
For i = 121 To 225 Step 13 c = Color(i, 51) ys = ys & c & ","
Next
ys=left(ys,len(ys)-1)'去掉最后一个多余的逗号
颜色数组 = Split(ys, ",")
那准确的应该怎么写呢!
Dim 颜色数组() As string,ys as string While 1 = 1 For i = 121 To 225 Step 13 c = Color(i, 51) ys = ys & c & ","
Next
ys=left(ys,len(ys)-1)'去掉最后一个多余的逗号
颜色数组 = Split(ys, ",") 下标 = Combo1.ListIndex do If Color(下标 * 13 + 121, 51) <> 颜色数组(下标) Then End If loop Wend