Hi, I have two layers in a graphs and I want a dataset to be displayed in the first or in the second layer depending upon the value of a bit in a dataset. My code goes like: (MyData_Data1 is the dataset from which the bit is decoded, and Mydata_Data2 is the data to be plotted.) if(MyData_Data1 & 256 == 256) { page.active=0; layer -e MyData_Data2; page.active=1; layer -i MyData_Data2; } else if(MyData_Data1 & 256 == 512) { page.active=1; layer -e MyData_Data2; page.active=0; layer -i MyData_Data2;
} It doesnt work , whatever the value of the bit,it plots inthe first layer only.
Can any one help me out? Thanks, Deepak Samuel. |