Is it possible to make the replace function not case sensitive? i been all over select case, try catch and having brain fart, any suggestions?????
Printable View
Is it possible to make the replace function not case sensitive? i been all over select case, try catch and having brain fart, any suggestions?????
i used
VB Code:
sentFile = LCase(sentFile)VB Code:
archivedFile = Replace(sentFile, "signedbatch", "archived", 1, -1)
yes there is , also the replace function you are using is vb6 method not .net :) here's an example ...
VB Code:
Dim sentFile As String = " some stuff with the word SiGnedBatcH in it!".ToLower '/// use .ToLower Dim archivedFile As String = sentFile.Replace("signedbatch", "archived") '/// use .Replace MessageBox.Show(archivedFile)