Gasman
Enthusiastic Amateur
- Local time
 - Today, 04:53
 
- Joined
 - Sep 21, 2011
 
- Messages
 - 17,412
 
On another forum, a member was asking how to replace a character at a certain location.
Replace() was offered, as you would expect.
The query was
These are 2 examples
02/26/2006N191 Merrimac Trl # 10
A10/26/2004N4059 Thorngate Dr
The Ns need to simply be changed to an O. No other change needed.
However a latter solution offered was
Mid(strTest, 12, 1) = "O" 'Replaces the 12th character 'N' with 'O'
which at least I had never heard of.
 Replace() was offered, as you would expect.
The query was
These are 2 examples
02/26/2006N191 Merrimac Trl # 10
A10/26/2004N4059 Thorngate Dr
The Ns need to simply be changed to an O. No other change needed.
However a latter solution offered was
Mid(strTest, 12, 1) = "O" 'Replaces the 12th character 'N' with 'O'
which at least I had never heard of.