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