BioloMICS logo
×
BioloMICS menu

Modify T fields

 
The T-Field contains a single integer value representing all combinations of four states: A, B, C and D. The 16 possible cases are given below (in fact 15 + the unknown case).
 
As these combinations are just the result of binary operations on the four basic values, using AND and OR operators allows all changes.
 
The basic values are: A = 1, B = 2, C = 4, D = 8. Combining A and C gives: (A OR C) = (1 OR 4) = 5.
 
See XTField Class to find an example.
 
You can use enumeration TFieldStateEnum declared in class XTField.
 
Removing a State is a bit more complex and must be made by using a mask not containing the State.
 
So removing State B (= 2) from a value T is done by using mask TFieldStateMaskEnum.Not_B (= 13) and therefore the equation is: T = (T AND TFieldStateMaskEnum.Not_B) (the code below is not complete).