In article
<abbottnospam-B45B67.18170430012004@news1.west.earthlink.net>, Abbott
Schindler <abbottnospam@nospamkbase.com> wrote:
> This looks like a good calculation that needs one small change:
> Just to make sure that things like decimal numbers in a sentence don't
> screw you up, instead of parsing for ".", "?", and "!", I'd suggest
> adding a space after each punctuation mark (". ", "? ", and "! ")
Good point. You probably should add a space after each character in the
calculation, it would also take care of any sentences with "..." in the
middle of them too. :o)
FirstSentence = Left(MyText, Min(Position(MyText, ". ", 1, 1),
Position(MyText, "! ", 1, 1),
Position(MyText, "? ", 1, 1)))
Although that does introduce the problem of speech sentences,
eg. George said, "Goodbye Jenny." He then left the room.
But this may not be an issue in whatever the original person is trying
to do.
Helpful Harry
"Hopefully helping harassed humans happily handle handiwork hardships" ;o)