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

Removing Lead Characters from a String 1

Status
Not open for further replies.

beth4530

Technical User
May 5, 2011
44
US
I have a field that has Sweetser_1\ preceding the employee name.
How do I trim these characters so I have just the employee name?
 
i think the below should give you everything after the first 11 characters. you may need to tweak it a little, as i do not have crystal in front of my and my memory is certainly not 100%!

//{@midtoend}
numbervar ltf := len({table.field});
MID({table.field},11,ltf)

 
You could use:

mid({table.field},12)

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top