Is it possible to tell the extent of an object property when dealing with the object dynamically?
extent(dynamic-property(Object1,"foo").
Gives me an error '** Unknown Field or Variable name - extent. (201). Has anyone had luck with this before?
Hi Ross,
This would be a nice feature, but I don't know whether it's expected to work or not. What I can tell you is that the following works:
DEFINE VARIABLE oFoo AS foo NO-UNDO.
DEFINE VARIABLE cBar AS CHARACTER NO-UNDO EXTENT.
oFoo = NEW foo().
cBar = DYNAMIC-PROPERTY(oFoo,"cPropBar").
MESSAGE EXTENT(cBar)
VIEW-AS ALERT-BOX INFO BUTTONS OK.
You can fetch the property into an indeterminate array and this automatically fixes the extents to match the property.
Regards,
Ken Mc
From my android ide..
Dynamic-property(foo):extent
?
[collapse]Thread created by RWEBSTERIs it possible to tell the extent of an object property when dealing with the object dynamically?
extent(dynamic-property(Object1,"foo").
Gives me an error '** Unknown Field or Variable name - extent. (201). Has anyone had luck with this before?Stop receiving emails on this subject.Flag this post as spam/abuse.
Hi Ross,
This would be a nice feature, but I don't know whether it's expected to work or not. What I can tell you is that the following works:
DEFINE VARIABLE oFoo AS foo NO-UNDO.
DEFINE VARIABLE cBar AS CHARACTER NO-UNDO EXTENT.
oFoo = NEW foo().
cBar = DYNAMIC-PROPERTY(oFoo,"cPropBar").
MESSAGE EXTENT(cBar)
VIEW-AS ALERT-BOX INFO BUTTONS OK.
You can fetch the property into an indeterminate array and this automatically fixes the extents to match the property.
Regards,
Ken Mc
Julian; ha that's exactly what I tried next, (to no avail)
Ken, Mike, Thanks, that worked perfectly!