This is nothing to do with the Editor. You should post on the Scripting forum. I’ll move your post for you.
If you are in any doubt on how to correctly spell things and use the correct case, use the docs please:
Also, you should set-up your project to use the correct IDE package. In that way, you’ll get proper intellisense hints etc.
Finally, here’s how to post code on the forums (no screenshots please): Using code tags properly