I'm doing a VFP Word Automation application where I need to conditionally remove a sentence from one of two paragraphs. By this I mean if the "condition" is True, remove the last sentence from the first paragraph. If the "condition" is false, remove the last sentence from the second paragraph. The trouble I'm having is finding the beginning position of the sentence to remove. my first paragraph is not Word's first paragraph because Word counts a paragraph for each Hard Return that it encounters, which includes the date line, each line of the address, salutation, and blank lines. I'm also doing a fair number of Search/Replaces in this document, like substituting today's date for <MAILING_DATE>, recipients first name for <SALUTATION>, etc.
How do I find where my conditional sentences begin and remove from that point to the end of the paragraph / sentenct?
Steve
How do I find where my conditional sentences begin and remove from that point to the end of the paragraph / sentenct?
Steve