T
tony
Hello!
I have 10 string fields which are elements or gas or someting else and some
symbol behind if less then or greater then se below. In the database there
is a string telling which field should be used by setting 1 or 0 in the
actual position. So for example field in position 5 is field Si<.
If only this field Si< should be used then the string in the database has
this look 00000100000
If all fields should be used then the string in the database look like
11111111011.
As you can see position 8 is not used and is always 0.
Now to my question is it anybody that have some clever algoritm to load an
array with the elements that
has setting 1.
index
0. C<
1. N<
2. N>
3. T<
4. T>
5. Si<
6. O2>
7. N2>
8.
9. Ar>
10. Time
Many thanks
//Tony
I have 10 string fields which are elements or gas or someting else and some
symbol behind if less then or greater then se below. In the database there
is a string telling which field should be used by setting 1 or 0 in the
actual position. So for example field in position 5 is field Si<.
If only this field Si< should be used then the string in the database has
this look 00000100000
If all fields should be used then the string in the database look like
11111111011.
As you can see position 8 is not used and is always 0.
Now to my question is it anybody that have some clever algoritm to load an
array with the elements that
has setting 1.
index
0. C<
1. N<
2. N>
3. T<
4. T>
5. Si<
6. O2>
7. N2>
8.
9. Ar>
10. Time
Many thanks
//Tony