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

Clip off a String 1

Status
Not open for further replies.

A1Pat

IS-IT--Management
Jun 7, 2004
454
US
Hi,

I know I saw someone in here show how to do this before which is collecting a string of text without the last particular # of character(s) of that string

for ie: Hello World!

and I only want to display
Hello World
(w/o an exclaimation) and I want to use the technique for all other cases that I don't know the length of that string.

Thanks!
 
You can do a lot with the following functions:
Len()
Mid()
Left()
Right()
InStr()
InStrRev()
 
thank you for reminding me of utilizing Len() to get any string LEN and use MID(1,Len-#) to do just that.

Good job!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top