I'm making my own wizard with Machscreen and have run into the following problem.
When clicking on the "POST CODE" button, nothing happens, and then when clicking on the "EXIT" button, I get back into Mach 3 (the latest version) and I get the message "Scripter compiler error: In"
The VB code assigned to my "POST CODE" button is very simple and I get no syntax errors. It starts and ends just like all the other wizards...
Sub Main()
DoOEMButton (169)
OpenTeachFile "example.tap"
...
...
...
CloseTeachFile
call LoadTeachFile()
End Sub
Main
All the lines in between are mostly: Code "example yada yada yada"
There are a few if/then statements which decide which "code" line to print to the file, but that's pretty much it. All of the calculations are done in the g-code itself using #*********x variables, rather than in the VBscript. This makes for easy tweaking of the gcode file without redoing the wizard.
Why the compile error?