Hi,
I noticed if I name a method in a class object 'callback()' that it will not run when invoked but it will run if I change it to 'setCallback()'. I couldn't find in the documentation a set of restricted names for variables/functions besides the obvious ones that are built in. I don't suppose there is a list of these somewhere so they can be avoided? Troubleshooting this can be a bugger.
Relayer
Is "callback" a restricted word?
Re: Is "callback" a restricted word?
It works for me.
Code: Select all
name.callback()
class name {
callback(){
MsgBox, Hey
}
}
Please excuse my spelling I am dyslexic.
Re: Is "callback" a restricted word?
Never mind... silly me, I had a class variable named the same thing. I make that mistake a lot. I mistakenly give a method the same name as a variable in the class and it chokes.
Who is online
Users browsing this forum: balawi28, Bing [Bot], Chunjee, moltenchees and 268 guests