chris-uk-lad
Registered User.
- Local time
- Today, 10:24
- Joined
- Jul 8, 2008
- Messages
- 271
Hi all,
Currently need to fine a way to change my file:
123-1-Cornwall
I want to remove the -1 character from the above file to leave:
123 - Cornwall
Ive been looking at things an believe replace is what i need but not sure how to adapt it to the 2 character positions.
All help appreciated, i know the mid function can return the 2 characters i want, but not remove them.
Currently need to fine a way to change my file:
123-1-Cornwall
I want to remove the -1 character from the above file to leave:
123 - Cornwall
Ive been looking at things an believe replace is what i need but not sure how to adapt it to the 2 character positions.
Code:
currentFile = Replace(currentFile, 5, "")
All help appreciated, i know the mid function can return the 2 characters i want, but not remove them.