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!

append to string 1

Status
Not open for further replies.

lisat76

Programmer
Sep 25, 2007
89
US
I want to be able to add text to a string
the string will be variables so the length will vary, but the one constant is that they will always end with .jpg.
I want to be able to append the string with text like large
So if i have a string like mypicture1.jpg
I would like to append it like mypicture1large.jpg
how can i do this? I don't want to rename the file just change the string. I am sure this is very simple, but I could not figure it out.
I tried trim.insert etc. etc. to no avail.
Thanks
 
Code:
NewFileName = REPLACE(StrFileName, ".jpg", "large.jpg")
is one approach.

--------------------------------------------------
"...and did we give up when the Germans bombed Pearl Harbor? NO!"

"Don't stop him. He's roll'n."
--------------------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top