Author Topic: Attributes.GetByName() throws Runtime-Error  (Read 3263 times)

JuergenA

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Attributes.GetByName() throws Runtime-Error
« on: March 15, 2005, 09:19:16 am »
Hi,

if I call the method to find an attribute of a class by its name I get the following error code:

  ?err.Number
  -2147221504
  ?err.Description
  Action is not supported

The attribute name and the class does exist, but
?class.IsNew says "true".

Any hint?

thx,
 Juergen

Code:

Dim aAttr As EA.Attribute
Dim aClass As EA.Element
...
sAttrName="existing_attribute_name"
aClass.Attributes.GetByName(sAttrName)
... -> error!