> Note the use of the "->" operator. I tryed, before wrote here, the diference is the error message :(. > Try that and see it is works. It should be equiv to the expression you used > but maybe there is a compiler bug or restriction. I this so. The next code is iron ring from wood, at least but work: switch(ship_no){ case 0: ship1.temperature = tempe; ship1.tem_cal = calib; break; case 1: ship2.temperature = tempe; ship2.tem_cal = calib; break; case 2: ship3.temperature = tempe; ship3.tem_cal = calib; break; case 3: ship4.temperature = tempe; ship4.tem_cal = calib; break; case 4: ship5.temperature = tempe; ship5.tem_cal = calib; break; case 5: ship6.temperature = tempe; ship6.tem_cal = calib; break; case 6: ship7.temperature = tempe; ship7.tem_cal = calib; break; case 8: ship8.temperature = tempe; ship8.tem_cal = calib; break; } udv Csaba -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads