Difference between revisions of "MemberInfo.Name"

From Xojo Documentation

m (1 revision)
(added example)
Line 8: Line 8:
 
}}
 
}}
 
The name of the item.
 
The name of the item.
 +
 +
==Example==
 +
 +
This example gets the list of properties for the passed type instance.
 +
 +
<rbcode>
 +
Dim d as New Date
 +
Dim myProperties() as Introspection.PropertyInfo = Introspection.GetType(d).GetProperties
 +
For i as Integer=0 to Ubound(myProperties)
 +
ListBox1.AddRow myProperties(i).Name
 +
Next
 +
</rbcode>

Revision as of 20:51, 31 August 2011

Property (As String )
aMemberInfo.Name = newStringValue
or
StringValue = aMemberInfo.Name

Supported for all project types and targets.

The name of the item.

Example

This example gets the list of properties for the passed type instance.

Dim d as New Date
Dim myProperties() as Introspection.PropertyInfo = Introspection.GetType(d).GetProperties
For i as Integer=0 to Ubound(myProperties)
ListBox1.AddRow myProperties(i).Name
Next