2024-04-04 09:44 AM - last edited on 2024-09-26 01:12 PM by Doreena Deng
So I'm reading the guides how to make a macro, and there's something that is confusing me. Can a macro not be defined inside my object that I'm writing? The only example I could find as it as a seperate object?
Is this the only way to define a macro?
Thanks guys!
2024-04-04 10:18 AM - last edited on 2024-04-05 03:47 PM by Laszlo Nagy
That is all a macro is - a separate object.
It can be nominated as un-placeable so you don't see it when browsing the library.
You can script exactly the same inside the original object, but it will not be accessible to any other object.
If you need to use it more than once in your object, make it a subroutine (GOSUB).
But if you want to use the same code in many objects, save it as a separate object and CALL it as a macro.
Barry.