I have added relationships to a Relatives chart and changed the format of the names, all good so far.
The relationships are shown is lower case and would like to change it to Initial Captitals!
I can see there are functions to change the text ToLower and ToUpper but nothing on Initial Capitals. I could capitilise the first character of each word but the expression might be a little long/complicated. Hoping there is an easier way that I cant see?
Hope someone can help....
Here is an example of the text (see Relationship):
* Chart Text Case
Chart Text Case
- Attachments
-
- Relationships.png (17.48 KiB) Viewed 335 times
- tatewise
- Megastar
- Posts: 27078
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Re: Chart Text Case
Yes, it will get complex. See Setting a word to sentence-case (21791) which explains how to handle one word!
On top of that, the Section(...) function will be needed to extract each space-separated word.
The following will capitalise just the first letter of the whole relationship:
=Text( ToUpper( LeftText( Relationship( FileRoot(), , TEXT, 1 ), 1 ) ) . MidText( Relationship( FileRoot(), , TEXT, 1 ), 2, 0 ) )
The righthand text is already lowercase so that does need the ToLower(...) function.
Although, thinking about it, in a Text Scheme item the outer =Text(...) function is also not needed:
=ToUpper( LeftText( Relationship( FileRoot(), , TEXT, 1 ), 1 ) )=MidText( Relationship( FileRoot(), , TEXT, 1 ), 2, 0 )
On top of that, the Section(...) function will be needed to extract each space-separated word.
The following will capitalise just the first letter of the whole relationship:
=Text( ToUpper( LeftText( Relationship( FileRoot(), , TEXT, 1 ), 1 ) ) . MidText( Relationship( FileRoot(), , TEXT, 1 ), 2, 0 ) )
The righthand text is already lowercase so that does need the ToLower(...) function.
Although, thinking about it, in a Text Scheme item the outer =Text(...) function is also not needed:
=ToUpper( LeftText( Relationship( FileRoot(), , TEXT, 1 ), 1 ) )=MidText( Relationship( FileRoot(), , TEXT, 1 ), 2, 0 )
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
Re: Chart Text Case
Many thanks Mike, will have a play......