C
Colin Higbie
Here's part of a sentence from a WordPerfect document with explanation. How
can I do the same thing in Word?
....provided IF(FIELD(M/F)=MheELSEsheENDIF is employed by the Company at the
time of issuance thereof and has neither received nor given notice of
Termination subject to Section 11.1 and Section 11.2,
IFNOTBLANK(Contract#)ISO.SUBSTR(FIELD(First Name);1;1)FIELD(Last
Name).FIELD(Vesting Date).SUBSTR(FIELD(Effective
Year);3;2).FIELD(Contract#)ELSEone or more optionsENDIF, which will entitle
FIELD(Last Name) to purchase, in the aggregate, shares of common stock of the
Company...
All the words in all caps except for ISO are merge codes (ISO is just text).
Here's what they do:
1. IF(FIELD(M/F))=MheELSEsheENDIF
There is a data field called M/F, if this is an M, WordPerfect inserts "he"
otherwise it inserts "she"
2. IFNOTBLANK(Contract#)ISO.SUBSTR(FIELD(First Name);1;1)FIELD(Last
Name).FIELD(Vesting Date).SUBSTR(FIELD(Effective
Year);3;2).FIELD(Contract#)ELSEone or more optionsENDIF
The first part checks to see if a data field called Contract# is empty for a
given record, if it is, WordPerfect inserts the text after the ELSE - "one or
more options" however if it's not blank it does more processing to generate
the name of the ISO Agreement, see #3 following
3. (subset of #2) SUBSTR(FIELD(First Name);1;1)FIELD(Last Name).FIELD(Vesting
Date).SUBSTR(FIELD(Effective Year);3;2).FIELD(Contract#)
Extracts the first initial from the data field called First Name, appends the
Last Name, a period, the Vesting Date, another period, the last 2 digits of
the Effective Year, another period, and then the Contract# (e.g.,
ISO.CHigbie.10-30.03.01)
It's #3 that I can't figure out how to do in Word. What's the best way to
accomplish this? I am using just a simple data file created from within the
Merge wizard in Word.
I also perform a search and replace and some calculations at the end of the
merge in WordPerfect, changing a string embedded in the body of the main
document, "~VESTING YEAR~", in multiple places into successively increasing
years based on the Effective Year value (e.g., 2004, 2005, 2006). I can't
figure out how to do that in Word either, but I'll submit another question on
that after I solve this first step (unless someone can tell me how to do based
on this limited explanation).
Thanks,
Colin
can I do the same thing in Word?
....provided IF(FIELD(M/F)=MheELSEsheENDIF is employed by the Company at the
time of issuance thereof and has neither received nor given notice of
Termination subject to Section 11.1 and Section 11.2,
IFNOTBLANK(Contract#)ISO.SUBSTR(FIELD(First Name);1;1)FIELD(Last
Name).FIELD(Vesting Date).SUBSTR(FIELD(Effective
Year);3;2).FIELD(Contract#)ELSEone or more optionsENDIF, which will entitle
FIELD(Last Name) to purchase, in the aggregate, shares of common stock of the
Company...
All the words in all caps except for ISO are merge codes (ISO is just text).
Here's what they do:
1. IF(FIELD(M/F))=MheELSEsheENDIF
There is a data field called M/F, if this is an M, WordPerfect inserts "he"
otherwise it inserts "she"
2. IFNOTBLANK(Contract#)ISO.SUBSTR(FIELD(First Name);1;1)FIELD(Last
Name).FIELD(Vesting Date).SUBSTR(FIELD(Effective
Year);3;2).FIELD(Contract#)ELSEone or more optionsENDIF
The first part checks to see if a data field called Contract# is empty for a
given record, if it is, WordPerfect inserts the text after the ELSE - "one or
more options" however if it's not blank it does more processing to generate
the name of the ISO Agreement, see #3 following
3. (subset of #2) SUBSTR(FIELD(First Name);1;1)FIELD(Last Name).FIELD(Vesting
Date).SUBSTR(FIELD(Effective Year);3;2).FIELD(Contract#)
Extracts the first initial from the data field called First Name, appends the
Last Name, a period, the Vesting Date, another period, the last 2 digits of
the Effective Year, another period, and then the Contract# (e.g.,
ISO.CHigbie.10-30.03.01)
It's #3 that I can't figure out how to do in Word. What's the best way to
accomplish this? I am using just a simple data file created from within the
Merge wizard in Word.
I also perform a search and replace and some calculations at the end of the
merge in WordPerfect, changing a string embedded in the body of the main
document, "~VESTING YEAR~", in multiple places into successively increasing
years based on the Effective Year value (e.g., 2004, 2005, 2006). I can't
figure out how to do that in Word either, but I'll submit another question on
that after I solve this first step (unless someone can tell me how to do based
on this limited explanation).
Thanks,
Colin