First time here? Check out the FAQ!
x

How do I access an EventValue with a name that starts "1_" ?

0 votes
450 views
I am using a Replicator and it is adding a numeric prefix to all the !EventValues of the Sounds to its left. (I'm using a prefix rather than a suffix because the VCS will group the controls by replication instance). This means that my !EventValue called "!Harmonic" appears in the VCS as "1_Harmonic".

I now need to access this !EventValue from outside of the replicator. But "!1_Harmonic" is not a valid !EventValue name because it starts with a number.

So how do I use that !EventValue in an STGC outside of the replicator?
asked Aug 26, 2019 in Capytalk & Smalltalk by alan-jackson (Virtuoso) (15,840 points)

1 Answer

+1 vote
 
Best answer
Have you tried !’1_Harmonic’? If that doesn’t work, you could use {‘1_Harmonic’ asHotValue}
answered Aug 27, 2019 by ssc (Savant) (128,120 points)
selected Aug 27, 2019 by alan-jackson
I couldn't get !’1_Harmonic’ to work.

{‘1_Harmonic’ asHotValue} works fine. Thanks!
...