Omnis Studio 3.3: $cinst.$name() in superclass

Michael Matthews omnis at lineal.co.uk
Fri Nov 30 08:26:16 EST 2018


I like archives, as this helped me so much today. :)

Mike

          <http://www.lineal.co.uk/>         

 <https://twitter.com/linealsoftware>  <https://www.facebook.com/linealsoftware?fref=ts&ref=br_tf>  <https://plus.google.com/112982815000763473226/about>  <https://www.linkedin.com/company/1859834?trk=tyah&trkInfo=clickedVertical%3Acompany%2Cidx%3A1-1-1%2CtarId%3A1437729256906%2Ctas%3Alineal%20s>		
Mike Matthews
omnis at lineal.co.uk <mailto:omnis at lineal.co.uk>
Lineal Software Solutions 
01271 375999 
Commercial House, The Strand
Barnstaple, Devon, EX31 1EU 
www.lineal.co.uk <http://www.lineal.co.uk/>

 <http://www.lineal.co.uk/windows-support/>  <http://www.lineal.co.uk/microsoft-office-365/>  <http://www.lineal.co.uk/wifi-networks/>  <http://www.lineal.co.uk/wifi-networks/>  <http://www.lineal.co.uk/it-systems/>  <http://www.lineal.co.uk/gamma-horizon-voip/>  <http://www.lineal.co.uk/kerio/>  <http://www.lineal.co.uk/apple-upgrades-repairs/>  <http://www.lineal.co.uk/eset-security-software/>  <http://www.lineal.co.uk/shoretel/>


> On 27 Jul 2005, at 08:16, Andreas Pfeiffer <andreas.pfeiffer at rainingdata.com> wrote:
> 
> Lee,
> 
> As others already pointed out you need to set parenthesize to evaluate the
> first part of your notation path first.
> 
> $cinst().$name would give you the name of the instance
> $cinst.$class().$name would give you the name of the class of the current
> instance (in your case it ought to be class C)
> $cinst.$lib().$name would give you the name of the library of the current
> instance (in your case it ought to be the library where classe C belongs to)
> 
> Hope that helps.
> 
> Kindest regards,
> 
> Andreas
> 
> 
> 
> -----Ursprungliche Nachricht-----
> Von: Lee Moody [mailto:lmoody at claimtrak.com]
> Gesendet: Mittwoch, 27. Juli 2005 01:18
> An: Ou_drop_point at omnis-underground.com
> Betreff: Omnis Studio 3.3: $cinst.$name() in superclass
> 
> I have a form C that is a subclass of B which is a subclass of A (A being
> the superclass of B, and B being the superclass of A).  At $construct time,
> I need to know the name and library of my C subclass from within my A
> superclass.  From within the $construct of A I perform a 'do inherited', and
> the same thing in B.  Everything works as expected, but when I look at
> $cinst.$name() from within the superclass A, I get a value of '$cinst'.
> $clib.$name() returns '$clib'.  Within the $construct if I set an instance
> variable to a value of $cinst.$ref and look at the value from within the
> Notation Inspector, the value of the name property for the instance variable
> is $cinst.
> 
> 
> 
> What am I doing wrong?
> 
> 
> 
> Lee Moody
> 
> ClaimTrak Systems, Inc.
> 
> 
> 
> ************************************************************
> Manage your list subscription at
> http://www.omnis-underground.com/mailman/listinfo/ou_drop_point_omnis-underg
> round.com
> 
> 
> ************************************************************
> Manage your list subscription at
> http://www.omnis-underground.com/mailman/listinfo/ou_drop_point_omnis-underground.com




More information about the omnisdev-en mailing list