Storyteller
Instructor
Hello All,
I have a string field that contains single characters seperated by blank spaces
Example: {ado.AgenciesNotified} contains "F L C"
F = Forest Service
L = Fish and Wildlife
C = Public Lands
When I use an If-Then-Else statement like this
If "F" in {ado.AgenciesNotified}
Then "Forest Service"
Else If "L" in {ado.AgenciesNotified}
Then "Fish and Wildlife"
Else If "C" in {ado.AgenciesNotified}
Then "Public Lands"
The formula works fine if there is only one value in the {ado.AgenciesNotified} field. However, if there is more than one value for example: "C L" in the field. The formula stops after the first correct "Then".
What I would like to do is be able to loop through the field "x"number of times to extract the character values and assign them to variables. Then in another formula assign the variables to the proper full text values.
Is this possible in Crystal Reports 7?
I am also open to any other suggestions you may have.
Regards,
Michael Microsoft Office 2000 Master Instructor
Corel Certified Instructor WordPerfect 9
I have a string field that contains single characters seperated by blank spaces
Example: {ado.AgenciesNotified} contains "F L C"
F = Forest Service
L = Fish and Wildlife
C = Public Lands
When I use an If-Then-Else statement like this
If "F" in {ado.AgenciesNotified}
Then "Forest Service"
Else If "L" in {ado.AgenciesNotified}
Then "Fish and Wildlife"
Else If "C" in {ado.AgenciesNotified}
Then "Public Lands"
The formula works fine if there is only one value in the {ado.AgenciesNotified} field. However, if there is more than one value for example: "C L" in the field. The formula stops after the first correct "Then".
What I would like to do is be able to loop through the field "x"number of times to extract the character values and assign them to variables. Then in another formula assign the variables to the proper full text values.
Is this possible in Crystal Reports 7?
I am also open to any other suggestions you may have.
Regards,
Michael Microsoft Office 2000 Master Instructor
Corel Certified Instructor WordPerfect 9