Xojo.Introspection.MemberInfo.Name

From Xojo Documentation

Revision as of 17:55, 11 August 2019 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Read-Only Property (As Text )
TextValue = aXojo.Introspection.MemberInfo.Name

Supported for all project types and targets.

The name of the item.

Sample Code

Gets the names of methods on a class:

Using Xojo.Introspection

Var obj As New Class1
Var info As TypeInfo = GetType(obj)
Var methods() As MethodInfo = info.Methods

Var methodNames() As Text
For Each m As MethodInfo In methods
methodNames.AddRow(m.Name)
Next