61
General Mach Discussion / Re: Macro for coordinating mach and external logic, syntax and other problems
« on: April 29, 2015, 03:25:02 PM »
In a similar vein, should not this:-
If Dir ("C:\Users\r\Desktop\Gcode\",2,".cgf")<>"" Then
....
Give the same result as this:-
If Dir ("C:\Users\r\Desktop\Gcode\2.cgf")<>"" Then
....
I had hoped to replace the 2 with the expression "NextFileNum +1", and then increment NextFileNum on each loop to find and load/run the next file in a folder:-
If Dir ("C:\Users\r\Desktop\Gcode\",2,".cgf")<>"" Then
LoadRun ("C:\Users\r\Desktop\Gcode\", NextFileNum +1, ".cgf")
It hasn't worked...sorry to be so clueless, but how do I achieve this? I've looked through the cypress basic 'enduser' pdf, and not surprisingly there's nothing in there.
If Dir ("C:\Users\r\Desktop\Gcode\",2,".cgf")<>"" Then
....
Give the same result as this:-
If Dir ("C:\Users\r\Desktop\Gcode\2.cgf")<>"" Then
....
I had hoped to replace the 2 with the expression "NextFileNum +1", and then increment NextFileNum on each loop to find and load/run the next file in a folder:-
If Dir ("C:\Users\r\Desktop\Gcode\",2,".cgf")<>"" Then
LoadRun ("C:\Users\r\Desktop\Gcode\", NextFileNum +1, ".cgf")
It hasn't worked...sorry to be so clueless, but how do I achieve this? I've looked through the cypress basic 'enduser' pdf, and not surprisingly there's nothing in there.