EventID(string &) in runtime

Request New Features here.
mbowdich
Posts: 209
Joined: Tue Oct 05, 2010 10:54 am

EventID(string &) in runtime

Post by mbowdich » Thu Aug 04, 2011 9:53 am

Please consider making EventID() not require a literal string at compile time similar to the function of getHandle(). Or consider adding a separate function to be able to get the vent handle during runtime.

Currently, the documentation also states that getHandle() is not compiled and requires a valid variable to do the substitution. This does not seem to to be the case, as I am successfully using a dynamically generated string during runtime to retrieve the handle of database variable.

Unfortunately, I cannot do the same thing when firing an event and have to have typed out in literal form for every even I want to call from a script. I am manipulating a lot of data using a for loop and it works very conveniently to make all of my variables and events be a fixed string followed by an index (Data.1, Data.2, Event.0, Event.2, etc.). This way, I can use the index variable from the loop to manipulate the correct data and then fire the appropriate event. It works very good with the variables, just not with events.
jpurdum
Enovation Controls Development
Enovation Controls Development
Posts: 153
Joined: Mon Jun 21, 2010 11:19 am

Re: EventID(string &) in runtime

Post by jpurdum » Thu Aug 18, 2011 1:40 pm

In 2.3 we now have auto-complete and other scripting help features to improve this.
mbowdich
Posts: 209
Joined: Tue Oct 05, 2010 10:54 am

Re: EventID(string &) in runtime

Post by mbowdich » Wed Aug 24, 2011 10:32 am

The issue is not auto complete, or the tedium of writing the litterals, but an issue of not knowing event at compile time, rather dynamically generating it during runtime.