![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I am using FMPro 5.5. I have created a concatenated field C1 C1 = calculated text field, indexed, flag1 & "_" & flag2 flag1 and flag 2 and 2 indexed text fields, with 2 possible values each: 1 or 0. Therefore, C1 can only be: 0_0, 0_1, 1_1, 1_0 However, I am getting strange results when I search C1. If I search for 0_0, I get 0_0, 0_1 and 1_0 records. If I search for 0_1, I get 0_1 and 1_0 records If I search for 1_0, I get 0_1 and 1_0 records (identical results as for 0_1) If I search for 1_1, I get 0_1, 1_0 and 1_1 records I have tried changing the source fields to Number, and the Concat field to number as well. No luck, same results. I have tried unindexing the field and then rebuilding the index, but I get the same results. It must be sometihng else. Where is the problem? Thank you |
#3
| |||
| |||
|
|
I think it is because the "_" sign is not taken into account in a search. Then, when calling for "0_0" is the same as if you were calling for " 0 0". There a number of characters that not taken into account : . , ; : - _ space and others. You may try changing your "_" into "&". It works. Remi-Noel |
#4
| |||
| |||
|
|
Hi, I am using FMPro 5.5. I have created a concatenated field C1 C1 = calculated text field, indexed, flag1 & "_" & flag2 flag1 and flag 2 and 2 indexed text fields, with 2 possible values each: 1 or 0. Therefore, C1 can only be: 0_0, 0_1, 1_1, 1_0 However, I am getting strange results when I search C1. If I search for 0_0, I get 0_0, 0_1 and 1_0 records. If I search for 0_1, I get 0_1 and 1_0 records If I search for 1_0, I get 0_1 and 1_0 records (identical results as for 0_1) If I search for 1_1, I get 0_1, 1_0 and 1_1 records I have tried changing the source fields to Number, and the Concat field to number as well. No luck, same results. I have tried unindexing the field and then rebuilding the index, but I get the same results. It must be sometihng else. Where is the problem? Thank you |
#5
| |||
| |||
|
|
I think it is because the "_" sign is not taken into account in a search. Then, when calling for "0_0" is the same as if you were calling for " 0 0". There a number of characters that not taken into account : . , ; : - _ space and others. You may try changing your "_" into "&". It works. Remi-Noel "Carlos Pereira" <cpereira (AT) nnnhotmail (DOT) com> a écrit dans le message de news: 4bcqa1l90q8m5uos8e2sqvc6tc8dpfn7n3 (AT) 4ax (DOT) com... Hi, I am using FMPro 5.5. I have created a concatenated field C1 C1 = calculated text field, indexed, flag1 & "_" & flag2 flag1 and flag 2 and 2 indexed text fields, with 2 possible values each: 1 or 0. Therefore, C1 can only be: 0_0, 0_1, 1_1, 1_0 However, I am getting strange results when I search C1. If I search for 0_0, I get 0_0, 0_1 and 1_0 records. If I search for 0_1, I get 0_1 and 1_0 records If I search for 1_0, I get 0_1 and 1_0 records (identical results as for 0_1) If I search for 1_1, I get 0_1, 1_0 and 1_1 records I have tried changing the source fields to Number, and the Concat field to number as well. No luck, same results. I have tried unindexing the field and then rebuilding the index, but I get the same results. It must be sometihng else. Where is the problem? Thank you |
#6
| |||
| |||
|
|
Remi-Noel is correct about Finds recognizing the underscore as a word separator. Your Find should work however if you put quotes around the criteria (i.e. search for "0_0" WITH the quotes). BTW, I always use underscores as separators in my concatenated fields, and these work great for relationships. In visually looking at the field contents, it is easy to see where the separate parts are and everything is tied together by the underscore. But with the limits on word indexing lengths, FMP still sees the underscored concatenation as separate words so that it gets properly indexed. Carlos Pereira wrote: Hi, I am using FMPro 5.5. I have created a concatenated field C1 C1 = calculated text field, indexed, flag1 & "_" & flag2 flag1 and flag 2 and 2 indexed text fields, with 2 possible values each: 1 or 0. Therefore, C1 can only be: 0_0, 0_1, 1_1, 1_0 However, I am getting strange results when I search C1. If I search for 0_0, I get 0_0, 0_1 and 1_0 records. If I search for 0_1, I get 0_1 and 1_0 records If I search for 1_0, I get 0_1 and 1_0 records (identical results as for 0_1) If I search for 1_1, I get 0_1, 1_0 and 1_1 records I have tried changing the source fields to Number, and the Concat field to number as well. No luck, same results. I have tried unindexing the field and then rebuilding the index, but I get the same results. It must be sometihng else. Where is the problem? Thank you |
![]() |
| Thread Tools | |
| Display Modes | |
| |