Hello Guest it is April 20, 2024, 12:26:08 PM

Author Topic: Can VB Buttom Code make calls to subroutines in other files ?  (Read 3184 times)

0 Members and 1 Guest are viewing this topic.

Can VB Buttom Code make calls to subroutines in other files ?
« on: February 07, 2008, 03:14:33 PM »
I been working on ATC and have added some buttons to the screens.  Some of the VB Button Code has functions that are the same and are lengthly, I would like to store these sub rountines in file that I can edit without having to add the code back into each button each time I make a change.

Is there a way to have the buttom VB Code call subroutines in other files?



Thanks,
Joel
Re: Can VB Buttom Code make calls to subroutines in other files ?
« Reply #1 on: February 07, 2008, 05:37:12 PM »
Hi, I havn't tried this but it's an idea, If you put in each button ( Code "M111") and check the execute G-code, each button should run a macro called M111 (you can give the macro any number of your choice this is just an example) place the Macro in the Mach3 Macro folder and write your VB code in the macro.

Hope this works for you, let us know how you get on.

Re: Can VB Buttom Code make calls to subroutines in other files ?
« Reply #2 on: February 07, 2008, 06:12:16 PM »
That works !!!  Simple and sweet.

Thanks,
Joel