A
Alex_u4a
Guest
You can use reflection to dynamically set property values in an object with Progress.Reflect.Property:Set( , ). Unfortunately this is not possible for a property defined as an extent which still has a indeterminate size. It would be helpful to have for example a Progress.Reflect.Property:SetExtentSize( , ). A work around is to define a variable as extent of which the extent size can dynamically be set using the EXENT statement. Next the property value can be dynamically assigned with this variable using reflection. The downside is that you would need an extent variable for all possible datatypes and each datatype needs to be handled seperately in the code. Also this does not work for an extent of enums.
Continue reading...
Continue reading...