Machsupport Forum

Mach Discussion => VB and the development of wizards => Topic started by: rrc1962 on December 14, 2010, 08:06:20 PM

Title: Using Include Files
Post by: rrc1962 on December 14, 2010, 08:06:20 PM
Can you use include files in VB Script?  I have a few functions that need to be attached to more than one button script.  I'm trying to avoid duplicating each function on each button script.  There are parameters that could change in the functions and I'd rather just have to deal with one copy.

Thanks
Title: Re: Using Include Files
Post by: BR549 on December 15, 2010, 10:14:06 AM
HUM I don't think so, would be nice though update one update all(;-)

(;-) TP
Title: Re: Using Include Files
Post by: DaveCVI on December 16, 2010, 01:42:04 AM
Hi,
There is an include facility in Mach - if you are running mach 3.43.6 or later.
mach spells it "#Expand"
For more info see the programmer ref manual at http://machsupport.com/docs/Mach3_V3.x_Macro_Prog_Ref.pdf (http://machsupport.com/docs/Mach3_V3.x_Macro_Prog_Ref.pdf)
Expand is one of the later sections in the document.

Dave