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

Formatting of String

Status
Not open for further replies.

Corres

Technical User
Jun 13, 2006
87
CA
CR 9 Oracle 9i

Hi to all!

Would you please help me how to format the field

System - Antas
System - Brasil

to be displayed as Antas or Brasil.

Thank you.
 
Try:

if ubound(split({table.string}," - ")) > 1 then
split({table.string}," - ")[2]

Or you could use:

mid({table.string},instr({table.string},"- ")+3)

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top