Book a Demo

Author Topic: Determine if an element is part of a collection  (Read 3611 times)

Lars

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Determine if an element is part of a collection
« on: February 18, 2014, 02:06:04 am »
Is there some efficient way to determine if a specific element is part of a Collection? By efficient I refer to a way in which I can avoid the process of looping through the collection comparing each and every element.

What I'm trying to achieve is to determine if a requirement exists in a diagram using VB-script.

Lars


Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: Determine if an element is part of a collectio
« Reply #1 on: February 18, 2014, 02:34:35 am »
Hello Lars,

you can use SQL (Repository.SQLQuery(slqString))

You find examples in Geerts Navigator (c#).

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)