Quantcast
Channel: AutoHotkey Community
Viewing all articles
Browse latest Browse all 579

Ask for Help (v2) • Re: "Expected a string, but got a function..."

$
0
0
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".

CODE:

bb.Add('Checkbox', 'x+5 Checked' var, 'Auto Lookup`nin editor').OnEvent("click", (*) => bbAuto := 1)

Statistics: Posted by ntepa — Today, 16:20



Viewing all articles
Browse latest Browse all 579

Trending Articles