dbTalk Databases Forums  

FMP8 - how to capitalise a sentence?

comp.databases.filemaker comp.databases.filemaker


Discuss FMP8 - how to capitalise a sentence? in the comp.databases.filemaker forum.



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

Default FMP8 - how to capitalise a sentence? - 10-10-2005 , 05:36 PM






I'd need a script to make each sentence lower case except for the first
letter. I can't see anything that does this. I could write something
that would do it, but I can;t believe its that hard. Is there an easy
solution that I am missing?

Thanks


Reply With Quote
  #2  
Old   
Bill Marriott
 
Posts: n/a

Default Re: FMP8 - how to capitalise a sentence? - 10-10-2005 , 07:47 PM






Sure it's hard. Just look at your post:

Quote:
..... I could write something that would do it, but i can't believe it's this
hard. Is there an easy solution that i am missing?
<<

The I's have become i's. You would need a dictionary of proper words which
would be exceptions to the capitalization rule. You'd also need to check for
quotations, parenthesis, and other punctuation at the start of a sentence.
This becomes further complicated by the many languages that FileMaker Pro
supports. Even with all this effort, you would likely still have situations
where FileMaker inappropriately strips capital letters.

I would probably not include this feature in a database I built. But were I
forced to do so, an easy solution would be to substitute a return for each
<period><space> sequence, then step through the "values" (lines) in a field
using the Lower(), Proper() and Leftwords() functions, under script control.

Bill

"Luke Siemaszko" <no.spam.for.me (AT) please (DOT) com> wrote

Quote:
I'd need a script to make each sentence lower case except for the first
letter. I can't see anything that does this. I could write something
that would do it, but I can;t believe its that hard. Is there an easy
solution that I am missing?

Thanks




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.