jecottrell
Joined: 16 Jan 2005 Posts: 559 Location: Tucson, AZ
|
Stucture Identifier/Field Name Problem |
Posted: Mon Nov 06, 2006 3:47 pm |
|
|
It appears the 3.236 compiler is having a problem digesting the following line:
Code: | if(assigned_sensor_array[i].status != assigned_sensor_array[i].rep_status) { |
I get a "Structure Filed Name Required" error with the ".rep_status" characters highlighted. I tried reversing the order of the two values being compared. I tried enclosing each in an extra set of parenthesis. Nothing worked.
This solved he problem:
Code: | tempstatus = assigned_sensor_array[i].status;
temprepstatus = assigned_sensor_array[i].rep_status;
if(tempstatus != temprepstatus)
|
Am I missing something?
Thanks,
John |
|