![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
FMP 8.5 adv WinXP I have made a calculation that higlights a word within a string. Now I want to higlight the word House, when I type house or House. Ans similarly I want to highlight the word boy, when I type boy or Boy. I have tried the upper and lower function, but when I try this the last function used overrides the first function use. gHighlite is a global where I type the word I am looking for. cSearchField is a field that allready exist, containing all the data and fields I need, But wit a Return between all the words. So I start with substituting all returns with spaces. Let ( [ A =Substitute ( cSearchField; "¶";" " ) ; B = Substitute ( A ; gHighLite ; TextSize ( TextStyleAdd ( gHighLite ; Bold ); 18 ) ) ]; B ) This works only when the typed word exactly matches the word I have typed. Let ( [ A =Substitute ( cZoek; "¶";" " ) ; B = Substitute ( A ; [ Lower ( gHighLite ) ; TextSize ( TextStyleAdd ( gHighLite ; Bold ); 18 ) ] ; [ Upper ( gHighLite ) ; TextSize ( TextStyleAdd ( gHighLite ; Bold ); 18 ) ] ); ]; B ) Only matches the when the word I am looking for is Upper allready, not when it is Lower. So what do I havew to do in order to do what I wanted? Thanks and keep well, Ursus |
#3
| |||
| |||
|
|
This works only when the typed word exactly matches the word I have typed. Let ( [ A =Substitute ( cZoek; "¶";" " ) ; B = Substitute ( A ; [ Lower ( gHighLite ) ; TextSize ( TextStyleAdd ( gHighLite ; Bold ); 18 ) ] ; [ Upper ( gHighLite ) ; TextSize ( TextStyleAdd ( gHighLite ; Bold ); 18 ) ] ); ]; B ) Only matches the when the word I am looking for is Upper allready, not when it is Lower. So what do I havew to do in order to do what I wanted? Thanks and keep well, Ursus CF highlights all occurrences of a specified word or phrase in a block of text with color and style regardless of case: http://www.briandunning.com/cf/13 Matt |
#4
| |||
| |||
|
|
This works only when the typed word exactly matches the word I have typed. Let ( [ A =Substitute ( cZoek; "¶";" " ) ; B = Substitute ( A ; [ Lower ( gHighLite ) ; TextSize ( TextStyleAdd ( gHighLite ; Bold ); 18 ) ] ; [ Upper ( gHighLite ) ; TextSize ( TextStyleAdd ( gHighLite ; Bold ); 18 ) ] ); ]; B ) Only matches the when the word I am looking for is Upper allready, not when it is Lower. So what do I havew to do in order to do what I wanted? Thanks and keep well, Ursus CF highlights all occurrences of a specified word or phrase in a block of text with color and style regardless of case: http://www.briandunning.com/cf/13 Matt Thanks Matt, but this is not what I want. When I look to highlight: The, it will allways highlight those three lettters at the start of all words. Like: THEm and THEir. I want an exact match. Keep well, Ursus |
#5
| |||
| |||
|
|
Thanks Matt, but this is not what I want. When I look to highlight: The, it will allways highlight those three lettters at the start of all words. Like: THEm and THEir. I want an exact match. Keep well, Ursus There may be another CF at BrianDunning.com that works on whole words. Matt |
#6
| |||
| |||
|
|
FMP 8.5 adv WinXP I have made a calculation that higlights a word within a string. Now I want to higlight the word House, when I type house or House. Ans similarly I want to highlight the word boy, when I type boy or Boy. I have tried the upper and lower function, but when I try this the last function used overrides the first function use. gHighlite is a global where I type the word I am looking for. cSearchField is a field that allready exist, containing all the data and fields I need, But wit a Return between all the words. So I start with substituting all returns with spaces. Let ( [ A =Substitute ( cSearchField; "¶";" " ) ; B = Substitute ( A ; gHighLite ; TextSize ( TextStyleAdd ( gHighLite ; Bold ); 18 ) ) ]; B ) This works only when the typed word exactly matches the word I have typed. Let ( [ A =Substitute ( cZoek; "¶";" " ) ; B = Substitute ( A ; [ Lower ( gHighLite ) ; TextSize ( TextStyleAdd ( gHighLite ; Bold ); 18 ) ] ; [ Upper ( gHighLite ) ; TextSize ( TextStyleAdd ( gHighLite ; Bold ); 18 ) ] ); ]; B ) Only matches the when the word I am looking for is Upper allready, not when it is Lower. So what do I havew to do in order to do what I wanted? Thanks and keep well, Ursus |
![]() |
| Thread Tools | |
| Display Modes | |
| |