PropertyInfo.PropertyType

From Xojo Documentation

Revision as of 14:17, 26 July 2019 by Gperlman (talk | contribs)
You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Property (As TypeInfo )
aPropertyInfo.PropertyType = newTypeInfoValue
or
TypeInfoValue = aPropertyInfo.PropertyType

Supported for all project types and targets.

Contains the property's datatype.

Example

This example gets the data type of each property of the Date class.

Var d As New Date
Var myProperties() As Introspection.PropertyInfo = Introspection.GetType(d).GetProperties
For Each prop As Introspection.PropertyInfo in myProperties
ListBox1.AddRow(prop.PropertyType.FullName)
Next