You can start down this road:
This was a (from)C# translation, but I don't have the C# with me at the
moment.
Private Function MatchPropertyNonString(ByVal obj As Object, ByVal
propertyName As String, ByVal value As Object) As Boolean
Dim match As Boolean = False
Dim propertyInfo As propertyInfo =
obj.GetType.GetProperty(propertyName)
If (Not (propertyInfo) Is Nothing) Then
Try
Dim target As Object = propertyInfo.GetValue(obj, Nothing)
'Now return whether the property matches or not
'Notice the equals takes any object type as a parameter
match = target.Equals(value)
Return match
Catch ex As Exception
Dim e As String = ex.Message
End Try
End If
Return match
End Function
Strings are trickier, because you may want to trim them, or use or not use
case sensitivity.
"Jie" <wj***@21cn.comwrote in message
news:eo*************@TK2MSFTNGP02.phx.gbl...
Hi ,everyOne:
i has a question, please help me.
string strBB = "Hello World!";
string strAA = "strBB"
how can i just know about strAA's value, to get the strbb's Value????
like the controls can use findControls("objName")!
Please Help me!