I have 3 variables called gxpos
, gypos
and gzpos
. I have a method called moove()
, with a string
argument axis (x, y or z) which I want to be able to change the value of both 3 variables (gxpos, gypos, gzpos).
In the code sample, I have represented the locations where I want to have the axis variable by this ?
.
public void moove(string axis)
{
g(?)pos = (?)pos + trkSizeStep.Value;
if (g(?)pos != m(?)pos || -g(?)pos != m(?)pos)
{
(?)pos = g(?)pos;
port.WriteLine(axis + (?)pos);
lblpos(?).Text = (?)pos.ToString();
}
else
{
errorLimit(axis, 1);
}
}