dbTalk Databases Forums  

Higlite

comp.databases.filemaker comp.databases.filemaker


Discuss Higlite in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ursus
 
Posts: n/a

Default Higlite - 03-16-2007 , 05:18 AM






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



Reply With Quote
  #2  
Old   
Matt Wills
 
Posts: n/a

Default Re: Higlite - 03-16-2007 , 11:07 AM






On 03/16/2007 07:18:25 "Ursus" <ursus.kirk (AT) wanadoo (DOT) nl> wrote:

Quote:
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

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


Reply With Quote
  #3  
Old   
Ursus
 
Posts: n/a

Default Re: Higlite - 03-16-2007 , 12:57 PM



Quote:
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




Reply With Quote
  #4  
Old   
Matt Wills
 
Posts: n/a

Default Re: Higlite - 03-17-2007 , 01:35 PM





On 03/16/2007 14:57:14 "Ursus" <ursus.kirk (AT) wanadoo (DOT) nl> wrote:

Quote:
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
There may be another CF at BrianDunning.com that works on whole words.

Matt


Reply With Quote
  #5  
Old   
Ursus
 
Posts: n/a

Default Re: Higlite - 03-18-2007 , 04:34 AM



Quote:
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
Yes, I thought of that, but haven't found it. Now I'm looking to adapt the
function by myself... But I'm never particularly good with recursing
funtions.

Keep well, Ursus




Reply With Quote
  #6  
Old   
Remi-Noel Menegaux
 
Posts: n/a

Default Re: Higlite - 03-19-2007 , 05:24 AM



You may also have a look at
http://www.nightwing.com.au/FileMaker/demos.html. Then go to the line :
Automatically Highlighting All Occurrences of a User-Specified Text
String.ally Highlighting All Occurrences of a User-Specified Text String.
under the title 'Free download for .fp7 files'.
It may do what you're looking for.
Remi-Noel


"Ursus" <ursus.kirk (AT) wanadoo (DOT) nl> a écrit dans le message de news:
45fa7cfd$0$42056$dbd4f001 (AT) news (DOT) wanadoo.nl...
Quote:
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




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.