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

How to Extract from a long string

Status
Not open for further replies.

ginkoba

Technical User
Jan 29, 2009
60
Please help. new to the forum.

Here is what I am trying to accomplish. I am trying to extract just this part from the below listed data in a descriptive field "08_December". Just the number and the name of the month. Is there a formula or code that I can use to do this and then group by that formula?

"
 
Try:

stringvar array x := split({table.string},"/");
x[ubound(x)]

-LB
 
Thanks LB. I do get an error:

"A subscript must be between 1 and the size of the array
 
That's odd. Try this:

stringvar array x := split({table.string},"/");
if ubound(x) >= 1 then
x[ubound(x)] else
{table.string}

-LB
 
Thanks a million LB. Worked perfectly!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top