Parentheses can be omitted only if the function is called by itself at the start of a line.
There's also a missing comma between "click" and the fat arrow function. The space between them causes "click" to auto-concatenate with the fat arrow function.
Strings cannot concatenate with functions, so it resulted in the error "Expected a string, but got a function".
There's also a missing comma between "click" and the fat arrow function. The space between them causes "click" to auto-concatenate with the fat arrow function.
Strings cannot concatenate with functions, so it resulted in the error "Expected a string, but got a function".
CODE:
bb.Add('Checkbox', 'x+5 Checked' var, 'Auto Lookup`nin editor').OnEvent("click", (*) => bbAuto := 1)
Statistics: Posted by ntepa — Today, 16:20