A Method question

Hello,

I am new to Xojo. I have created a method in the App named FxMsg(). Whenever I need to call up this method, I will use the App.FxMsg() statement.

I would like to know how do I rewrite my code to just use FxMsg() without the prefix App instead of using App.FxMsg()?

Thank you,

You could create a module, move your Method to this module an set it to global.
But think about, if that is really necessary, because it could conflict with other code, if the same name is used.

Hello Marius,

Thanks for your answer and warning. I will start my module prefix with Fx to minimize conflicts with other codes.