SOLVED: Can't open perform window by code - very weird error

Hello! I’m very new in TD, I’m trying to open the perform window by code, so I’ve created a CHOP Execute, triggered by a button, with this very simple code (that I’ve read on the web)
op(’/perform’).par.winopen.pulse()
But the window don’t open, and in Textport I read this very very weird error:

DAT compile error: /chopexec1
File “/chopexec1”, line 11
op(’/perform’).par.winopen.pulse()
^
SyntaxError: invalid character ‘’’ (U+2019)

File “/chopexec1”, line 11
op(’/perform’).par.winopen.pulse()
^
SyntaxError: invalid character ‘’’ (U+2019)

What the f*** does it mean?
Many thanks!!

op(’/perform’).par.winopen.pulse()

Look at the quotes you are using op(’/perform’).par.winopen.pulse()

They aren’t valid quotes.

It should be op('/perform').par.winopen.pulse() instead. Straight single quotes, like this '

1 Like