Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
cosy
Posted - 03/24/2004 : 08:18:35 AM 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.
1 L A T E S T R E P L I E S (Newest First)
Mike Buess
Posted - 03/24/2004 : 4:04:59 PM Layer numbering starts with 1 in LabTalk.