It was not intended as an assignment but was in a conditional comparison. I have gone through near 50 variations of the MA case code, and have reduced it to a vectorMove function and do my monkey business by swapping what i send the function. It also had the benefit of cropping almost 1kb of code in the compiled product. If you want the current ino let me knoe, and I'll post it, otherwise I'll continue on to a more complete command set.
ajofscott:
While running the machine making test cuts I noted my Current cursor is remaining 0,0. Is this statement being interpreted as 'A replaced with NOT B'?Current.X != ThisOperation.Begin.XWhere my premise was != meant the same as <> or not equal to.
...
but was in a conditional comparison
In that case nothing is being replaced. It is just saying: is "Current.X" not equal to "ThisOperation.Begin.X".
Nothing is being replaced or changed.
the switchcase statement reduced to this:
case 0x4D41: //Move Absolute 'MA' or 'ma' Cutter is moved to Begin.X and Begin.Y then moved to Finish.X and Finish.Y
{
if((Current.X != ThisOperation.Begin.X)||(Current.Y != ThisOperation.Begin.Y))
{
VectorMove(Current, ThisOperation.Begin);
}
VectorMove(ThisOperation.Begin, ThisOperation.Finish);
break;
}
For the record the forum needs to look for Chr(09) 'tab' and replace it with Chr(32) Chr(32). This re edit is nothing short of a pain.
I reject tabs and substitute spaces. You can never know what someone else has their tabs set to.