But, the problem here is that if use for multiple times for the same string it inserts too many single quotes.
Public Function ReplaceSingleQuote(ByRef val As String) '//***This function replaces the single quote to double quote***\\ If IsNothing(val) = False OrElse val <> String.Empty Then val = val.Replace("'", "''") val = val.TrimStart End If Return val End Function
Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.
”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.