属性的问题
Dim ctr As Control
Dim X2 as string
Dim X1 as string
X2="caption"
X1="国产"
For Each ctr In formName.Controls
If (ctr.X2= X1) Then **** 注
.......
End If
Next
***这个地方出现不支持该属性,但如果ctr.caption=x1这样写又是正确的,我想问,怎样才可能解决这个问题呢?因为我想写个函数,实现X2可以为"name","caption"的属性
盼望指教