Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dividing a string 1

Status
Not open for further replies.

iwm

Programmer
Feb 7, 2001
55
US
I am trying to divide the following string:

"Departure|Arrival|Time|Expenses"

This string will be used to populate the details section of a report. I need to divide the string at the pipe symbols(|) producing the following four individual fields:

Departure Arrival Time Expenses

Do you know of any way to divide this string into the desired individual fields. Is there a string function in Crystal Reports 9 that can be used to accomplish this task?

Your assistance in this matter is greatly appreciated.



 
Split({YourField,"|"} will createan array. You can then get the individual components as follows:

Split({YourField,"|"}[1]
Split({YourField,"|"}[2]
etc., etc.


Software Sales, Training, Implementation and Support for Macola, eSynergy, and Crystal Reports

"A fine is a tax for doing wrong. A tax is a fine for doing well.
" - unknown
 
Thank you very much! Your solution was perfect!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top