Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Lukas

Pages: [1]
1
Ok now I got end of statement expected

Edit
OK I got this. You can use braces but you have to use set word. So the sentence looks like this
Code: [Select]
set element = Repository.GetElementByID(someID)
Thank you for your help :)

2
Hi there,
I am trying to get an element by its id
Code: [Select]
dim element as EA.Element
element = Repository.GetElementByID(someID)
but I get error:
object doesn't support property or method
The same code but in javascript works as charm. Can you guide me how to get an element by id in Visual Basic script?

Why I am not writing the script in javascript if it works? correct me if I am wrong but you can not update use case constraint notes in javascript. If you want to update use case constraint you have to create new one, delete old one because you can not just asssing new value (there is not setAt function only getAt)

Pages: [1]