Feb 27, 2006 #1 lorirobn MIS Mar 15, 2005 450 US Hi, How can I replace a semi-colon ( only if it is the first character in my string? Sometimes it will be there, but not always. Thanks in advance...
Hi, How can I replace a semi-colon ( only if it is the first character in my string? Sometimes it will be there, but not always. Thanks in advance...
Feb 27, 2006 #2 snyperx3 Programmer May 31, 2005 467 US How about this? If Left(yourString,1) = ";" Then yourString = replacement & Right(yourString,Len(yourString)-1) End If -Pete Upvote 0 Downvote
How about this? If Left(yourString,1) = ";" Then yourString = replacement & Right(yourString,Len(yourString)-1) End If -Pete
Feb 27, 2006 Thread starter #3 lorirobn MIS Mar 15, 2005 450 US Excellent! Got it - thank you so much! Nice and simple, and it works, too. Lori Upvote 0 Downvote
Feb 27, 2006 #4 stix4t2 Programmer Feb 23, 2006 318 US maybe instead of Right(str, len(str)-1) you can use mid( str, 2) Upvote 0 Downvote
Feb 27, 2006 Thread starter #5 lorirobn MIS Mar 15, 2005 450 US cool! I love learning all these tricks... Upvote 0 Downvote