create point attribute outside cookmysop().

   2049   3   1
User Avatar
Member
41 posts
Joined: Feb. 2014
Offline
I realize that there is some inheritance/hierarchy witchcraft that is stopping my code from compiling properly (undeclared identifier). I have tried many snippets of code that are supposed to create attributes, but they only work inside the cookmysop function. So, how can I create an attribute outside cookmysop() that is at the same time accessible by the cookmysop function and avoids inheritance problems?

Thanks in advance.
User Avatar
Member
7710 posts
Joined: July 2005
Offline
That is not allowed.
User Avatar
Member
41 posts
Joined: Feb. 2014
Offline
Hi edward, Stalkerx777 replied* in odforum that is possible. I'm confused.

*http://forums.odforce.net/topic/21325-create-point-attribute-outside-cookmysop/?p=127099 [forums.odforce.net]
User Avatar
Member
7710 posts
Joined: July 2005
Offline
Of course, you can always forcefully do it like cast away const-ness but that will just cause bad things down the line.
  • Quick Links