- Olan Knight
- PowerBuilder
- Tuesday, 9 May 2017 11:00 PM UTC
PB v12.1 Classic
I have a need to create a DWOBJECT dynamically.
Now, we all know that the standard method is as follows, but it requires that the column name be hardcoded.
dwobject ldwo
ldwo = this.Object.emr_juris_ind
What I have done is to use the undocumented function "__get_attribute()" function to accomplish this:
ls_column = "emr_juris_ind"
ldwo = this.Object.__get_attribute (ls_column, true)
It works, but I'd rather use a technique that is a wee bit less of a hack.
Does anyone have a different method of dynamically creating a DWOBJECT of type "column"?
Thanks,
Olan
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.