Cabbage Logo
Back to Cabbage Site

What does syntax error, unexpected T_IDENTB mean?

I get this error when trying to reset the “fontcolour” property for a checkbox. What is it?

Thanks,

J. Wells

Hi @trkkazulu, and welcome. That’s a syntax error in your Csound code. Can you post the code? Just for reference, the following works fine:

<Cabbage>
form caption("Checkbox") size(400, 300)
checkbox bounds(10, 10, 100, 40), text("Hello"), identchannel("checkIdent")
button bounds(10, 110, 100, 40), channel("trigChange")
</Cabbage>
<CsoundSynthesizer>
<CsOptions>
-n -d -+rtmidi=NULL -M0 -m0d 
</CsOptions>
<CsInstruments>
; Initialize the global variables. 
ksmps = 32
nchnls = 2
0dbfs = 1


instr 1
    if chnget:k("trigChange") == 1 then
       chnsetks "fontcolour(255, 0, 0)", "checkIdent"
    endif
endin

</CsInstruments>
<CsScore>
;causes Csound to run for about 7000 years...
f0 z
;starts instrument 1 and runs it for a week
i1 0 [60*60*24*7] 
</CsScore>
</CsoundSynthesizer>

Hi,

Thanks for your reply. I see that you’re enclosing the fontcolour opcode in quotes along with the parameters. I’ll try that. If it doesn’t work I’ll upload my source here.

Thanks a million,

Jair-Rohm

Ok, I see what I was doing wrong now. Thank you very much!

Jair-Rohm