Hi
Is it possible to get all the methods and properties of a class?
As an Example, lets say I have a class named clsPerson with Method, Initialize, SetAge, GetAge and properties Age, Gender, MobilePhone.
How can I get these properies by reading the class via a loop?
Is there anything like this possible?
Anyone please advise?
Is it possible to get all the methods and properties of a class?
As an Example, lets say I have a class named clsPerson with Method, Initialize, SetAge, GetAge and properties Age, Gender, MobilePhone.
How can I get these properies by reading the class via a loop?
B4X:
For each prop as Property in clsPerson.Properties
log(prop.Name)
next
B4X:
for each meth as method in clsPerson.Methods
log(meth.definition)
log(meth.variables)
for each v as variable in meth.variables
log(v.name)
log(v.type) 'boolean, string, datetime
next
next
Is there anything like this possible?
Anyone please advise?