General information
Category:
Coding, syntax & commands
>I have a class called rule42 which is based on the license class which is based on custom.
>
>This is the Init of rule42:
>
>lparameter cLicID
>dodefault(cLicID)
>select PROGRAMB
>if pcount() = 1
> if ! seek(cLicID, 'PROGRAMB', 'LIC_ID')
> return .f.
> endif
>endif
>scatter name oProgramBRcd
>
>Here is the init of the license class:
>
>lparameter cLicID
>select LICENSE
>if pcount() = 1
> if ! seek(cLicID, 'LICENSE', 'LIC_ID')
> return .f.
> endif
>endif
>scatter name oLicenseRcd
>with this
>
>endwith
>
>The problem I am seeing is the scatter object, oLicenseRcd, is created, but as soon as License.Init ends the object disappears. Almost as if it is losing scope. Do objects created with scatter..name have scope?
>
>TIA
It's so easy. Of course, I had to change SCATTER NAME oLicenseRcd to SCATTER NAME this.oLicenseRcd and create a property in my for each scatter object to be stored into.
think oop...think oop...
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only