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 dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with long, delimited text field 1

Status
Not open for further replies.

Tatertot45

Technical User
Jun 11, 2007
161
I'm using CR XI, SQL DAtabase and a stand alone CR (Developer)

I have a larger ITem Description firled that i need to parse out, but can't seem to figure it out. An example of the field is *CAL,APC,Lav/Pine,33.8oz. I need to display the "APC" part of the field, or the second element as it is seperated with commas. However, i can't find the function to use where you can split a field and identify the delimitor. This hsould be simple, but i'm having a moment.

Any help is appreciated.
 
Tatertot45,

try:

stringvar array txt := split({table.itemDescription},",");
if ubound(txt) >= 2 then
txt[2]
else
{table.itemDescription}

Andy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top