Hi Jim,
I hope you can help with this blank wall I am facing. I believe it's in some way related to this thread(?)
You see, I have created a form class that accepts a user business object as parameter and then is supposed to display its assigned rights. The form class just contains a grid which displays the privileges available and has a checkbox column to grant (or not grant) selected line to user. My code goes something like this.
oUser = NEWOBJECT( "BIZOBJCLASS", "MYCLASSLIB", "", ... )
oRights = NEWOBJECT( "FRMRIGHTSCLASS", "MYCLASSLIB","", oUser )
The above code will generate an "Error Instantiating Object" error message on the 2nd line.
However, if I used DO FORM on the 2nd line like so:
oUser = NEWOBJECT( "USER", "MYCLASSLIB", "", ... )
DO FORM frmRights WITH oUser
It works. Why so?
Thanks in advance,
Dennis
>Alex,
>
>I would return an object simply because the object can have many properties that can tell you all kinds of stuff about what wnet on. Thr object could, for instance have the following properties;
>
>
>Object.cStatus
>
>
>Object.cValue
>
>Object.ValueType
>
>etc.
>
>
>You can see that once you change to passiong and returning objects the potential flexibility is amazing.