Passing an Object Ref
Kelly Burgess
kellyb at montana.com
Wed Dec 21 13:48:52 UTC 2022
Hi Martin,
>What should be the subtype of the objref parameter "pCountryObjRef" created in the superclass that is receiving the object from the window class?
When you pass an object reference as a parameter, the datatype of the called method's parameter must be Object Reference. The subtype of an object reference variable or parameter is a cosmetic thing, it's not necessary to assign it, it just helps when you want to right-click and inspect while debugging. The subtype assignment has nothing to do with why you see an empty object reference when stepping through. If you've set the parameter type to Item Reference instead of Object Reference, that might cause this. Or sometimes I've seen where viewing a superclass doesn't show me a value but viewing the subclass does - can't recall if it was inherited instance vars or parameters...
Kelly
More information about the omnisdev-en
mailing list