Hi,
I have Crystal 2008 version 12.0.0.683. I have a field called {EQUIP.SAFETYNOTE} that is a Long Character Object. I want to delete 1 - 5 standard lines. Then only if there is any data left, export to word. My initial Record Selection Formula omits null and blank fields. What I want deleted is the following:
Sometimes I have addition information such as:
In this case I would want the output to be
After a bunch of searching I have came up with the follow:
I know that I would replace " a" "b" etc with "". And use the full version of the standard line in my replace argument. But this way I can check my results. The problem is that this is only working against the first line of my test data. It ignores all the other lines. So my questions are: How to run this replacement against the entire multi-line Long Object and how to filter out cases where I do not have any data (or only line returns) left?
Thanks.
Bob
I have Crystal 2008 version 12.0.0.683. I have a field called {EQUIP.SAFETYNOTE} that is a Long Character Object. I want to delete 1 - 5 standard lines. Then only if there is any data left, export to word. My initial Record Selection Formula omits null and blank fields. What I want deleted is the following:
Code:
LOCKOUT TAGOUT POLICY: SEE ATTACHMENTS:
CONFINED SPACE REQUIREMENT:
REQUIREMENT STANDARDS:
SCHEDULING REQUIREMENTS:
COORDINATION REQUIREMENTS:
SPECIAL INSTRUCTIONS:
Sometimes I have addition information such as:
Code:
LOCKOUT TAGOUT POLICY: SEE ATTACHMENTS
CONFINED SPACE REQUIREMENT: USE THE SHORT PERSON
REQUIREMENT STANDARDS: NFPA 101 - 38.3.2.1
SCHEDULING REQUIREMENTS:
COORDINATION REQUIREMENTS:
SPECIAL INSTRUCTIONS:
DOOR - 90 MINUTE RATING
JAMB - UL LISTED
Code:
USE THE SHORT PERSON
NFPA 101 - 38.3.2.1
DOOR - 90 MINUTE RATING
JAMB - UL LISTED
Code:
LOCAL STRINGVAR HOLD1;
HOLD1 := {EQUIP.SAFETYNOTE};
HOLD1 := Replace ({EQUIP.SAFETYNOTE},"LOCKOUT", " a");
HOLD1 := Replace (HOLD1, "TAGOUT", "b");
HOLD1 := Replace (HOLD1, "REQUIREMENT", "c");
HOLD1 := Replace (HOLD1, "SCHEDULING", "d");
HOLD1 := Replace (HOLD1, "COORDINATION", "e");
HOLD1 := Replace (HOLD1, "SPECIAL INSTRUCTIONS:", "f");
Thanks.
Bob