Hi,
If OntvangByte is a byte (or word or long) you access its indivudal bits using the dot notation, like:
Code:
OntvangenByte.0 = 1  'Set bit 0
OntvangenByte.7 = 0  'Set bit 7

If Ontvangbit = 1 THEN   ' If bit is set
  OntvangByte.0 = 1       ' Set lowest significant bit in BYTE
ENDIF
/Henrik.