Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.databases.filemaker > #3243

find text with formatting or styles

From Martin Τrautmann <t-usenet@gmx.net>
Newsgroups comp.databases.filemaker
Subject find text with formatting or styles
Date 2019-04-30 14:09 +0000
Organization slrn user
Message-ID <slrnqcgloa.542.t-usenet@ID-685.user.individual.de> (permalink)

Show all headers | View raw


Is there any chance to find which text part within a text is formatted?

You can add formatting with TextStyleAdd.
Example:

if(patterncount(text,"""")=2,
let(
[begin=position(text,"""",1,1),
end= position(text,"""",1,2),
substring=middle(text,begin+1,end-begin-1)],
left(text,begin) &
TextStyleAdd ( substring ; bold )&
middle(text,end,9999)),
text)

will change the text
  the "second" word
to
  the "*second*" word

The formatting condition here would remain available.

But how about a *formatted* text
    the *second* word
where the formatting is a text option.

Is there any reverse function for a TextStyleAdd,
such as
 get(TextStyled(text,bold) 		-> second
 get(TextStyledPosition(text, bold)) 	-> 5
 get(TextStyledLength (text,bold) 	-> 6

I still do use FMP 11

Back to comp.databases.filemaker | Previous | NextNext in thread | Find similar


Thread

find text with formatting or styles Martin Τrautmann <t-usenet@gmx.net> - 2019-04-30 14:09 +0000
  Re: find text with formatting or styles Martin Τrautmann <t-usenet@gmx.net> - 2019-04-30 14:10 +0000

csiph-web