NOPE still can't do it without example code. I am just cutting and pasting here from Brians original example. THAT is not programming that is fishing with rocks, sooner or later you WILL hit a fish in the head and have supper.
I do have a question on wizards. I need to be able to LOAD the program on close of the Wizard. The Wizard uses this code to gather the FileName to save.
I cannot figure out WHAT VARIBLE it saves the NAME as. I need that NAME to be able to open the file in Mach4 before the wizard closes.
I use MsgBoxes to try and test all the variables I could think of and it always reports NIL. It would appear that it uses the local Variable "file" but I get NIL when I display that string right after that function.
-- End of Gcode Write fILE to DIR
local file = wx.wxFileDialog(panel, "Select Gcode File Name","",""," Tap files (*.tap)|*.tap",
--wx.wxFD_SAVE,wx.wxDefaultPosition,wx.wxDefaultSize, "File Dialog" );
wx.wxFD_SAVE + wx.wxFD_OVERWRITE_PROMPT,wx.wxDefaultPosition,wx.wxDefaultSize, "File Dialog" );
--wx.wxMessageBox(tostring(file))
if (file:ShowModal() == wx.wxID_OK) then
local path = file:GetPath()
--wx.wxMessageBox(tostring(path))
io.output(io.open(path,"w"))
io.write(gcode)
io.close()
end
SaveSettings()
end)
IT DOES write the correct file name on the save BUT what IS the file name


??
HIYA CRAIG, I have the code that runs the functions I just need to convert it to LUAISM Right noww it just posts the Safety Blocks AND the file end Blocks.
I ran out of ROCKS , (;-) TP