A
AMP
Hello,
I have a Form level variable:
public partial class Form1 : Form
{
byte rxHeader = 0;..............................
That gets passed from one function to another:
if (comRxHeader(rxHeader, rxNum, (timeout * prolongFactor)) ==
0)..........// rxHeader is 0 when it leaves here
comRxHeader changes it to 144. It stays at 144 all through the
function, but when it gets back to the sending function(comTxRx) it is
0 again, but there is nothing to change it back to 0.
What am I doing wrong?
Thanks
Mike
I have a Form level variable:
public partial class Form1 : Form
{
byte rxHeader = 0;..............................
That gets passed from one function to another:
if (comRxHeader(rxHeader, rxNum, (timeout * prolongFactor)) ==
0)..........// rxHeader is 0 when it leaves here
comRxHeader changes it to 144. It stays at 144 all through the
function, but when it gets back to the sending function(comTxRx) it is
0 again, but there is nothing to change it back to 0.
What am I doing wrong?
Thanks
Mike