Feb 27, 2006 #1 lorirobn MIS Joined Mar 15, 2005 Messages 450 Location 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 Joined May 31, 2005 Messages 467 Location 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 Joined Mar 15, 2005 Messages 450 Location 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 Joined Feb 23, 2006 Messages 318 Location 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 Joined Mar 15, 2005 Messages 450 Location US cool! I love learning all these tricks... Upvote 0 Downvote