Machsupport Forum
Mach Discussion => Mach4 General Discussion => Mach4 Toolbox => Topic started by: poppabear on February 23, 2015, 03:45:49 PM
-
This is a simple Variable value displaying function, that you can display the
values of your variable that are in you Wizard or Macro as they occur.
it will default to a wxMessageBox display or optional MachErr.
The wxMessagebox is used since it is modal, and "stops"
the program from continuing till you click the OK button.
The wxMessageBox is the default behaviour, but you can add
an optional "1" as a third parameter which will send it to
Mach Error, which is NOT model. So, if you have this function
in a series it will log to the error history box, but only the
last error will show in the Mach error.
Params:
1st Param is the Variables Name as a String, i.e. myvar would be "myvar".
2cd Param is the Variable itself, i.e. you would put myvar as param #2.
3rd Param is optional, and if a 1 is used, will send the data to Mach Err,
if there is nothing for a 3rd param or other than 1 it will default to
display in the wxMessageBox.
NOTE: The wxMessageBox will sometimes appear BEHIND your Mach 4 window!
the .mcs file is setup as a Macro for your testing to see how it works.
Happy Debugging,
Scott
-
Just a Question on that one .COULD the results be piped into the top left corner of the toolpath dispay ??
(;-) TP
-
You have the Source Obi-wan, modify it as you see fit.
Or... as the Hackers say, "Use the source Luke".
Scott