First time here? Check out the FAQ!
x

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

0 votes
48 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 in Capytalk & Smalltalk by alan-jackson (Virtuoso) (12,000 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 by ssc (Savant) (96,240 points)
selected Aug 27 by alan-jackson
I couldn't get !’1_Harmonic’ to work.

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