6531
VB and the development of wizards / Re: How to get the current subroutine file name?
« on: July 18, 2010, 03:32:34 PM »
Name "C:\mach3\gcode\drawing1.tap" As "c:\mach3\gcode\drawing11.tap"
BuggyWhipper style (;-)
NOTE: IF you are trying to rename a loaded file then you are going to have to do it a different way. IF you try it straight up you are probable going to CORRUPT mach in a big way.
TO do it, get current file name, get current line#, close file, rename file, reload newfilename, goto line#
(;-) BUT WHY do it at all
?
BuggyWhipper style (;-)
NOTE: IF you are trying to rename a loaded file then you are going to have to do it a different way. IF you try it straight up you are probable going to CORRUPT mach in a big way.
TO do it, get current file name, get current line#, close file, rename file, reload newfilename, goto line#
(;-) BUT WHY do it at all
