Aaah Of course, why didn´t I think of that
The method doesn’t return the "value" but a reference to the value property of the object...
Thanks Mark!!
Search found 92 matches
- Tue Dec 04, 2012 3:14 pm
- Forum: Scripting
- Topic: Access a tag via string and write to it
- Replies: 6
- Views: 12962
- Tue Dec 04, 2012 1:20 am
- Forum: Scripting
- Topic: Access a tag via string and write to it
- Replies: 6
- Views: 12962
Access a tag via string and write to it
Hi! Previous I been using the following method to read values from tags when accessing them via a string congaing their names. private GlobalDataItem GetGlobalDataItem(string propertyName) { PropertyInfo tagProperty = typeof (Neo.ApplicationFramework.Generated.Tags).GetProperty(propertyName); if(tag...