Author Topic: Getting package tags within VB  (Read 4155 times)

Herman

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Getting package tags within VB
« on: May 13, 2004, 06:54:54 am »
Hi

My EA-model contains tagged values for packages, but I'm not able to get these within my VB application using the automation interface. The help of EA says that only elements can contain tagged values. I'm sure that my packages also contain tagged values. Does anyone has a solution for this problem?

Greetings

Herman

barny451

  • EA Novice
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
Re: Getting package tags within VB
« Reply #1 on: May 16, 2004, 02:26:24 pm »
The package object has an element property which *can* have tags, because it is an element.  So, if p is your package object, p.element is where you can look for the tag(s)

For example:

dim p as ea.package
... get a p
dim el as ea.element
set e=p.element
...check for tags

HTH
Ian

Herman

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Getting package tags within VB
« Reply #2 on: May 18, 2004, 04:02:10 am »
Thanks for your reply, Ian. This was the solution I was looking for.

Herman