We value your feedback.
Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
Dim name As String = "mycontact" Dim Increment As Integer = 1 Dim SaveSuccessful As Boolean = False While Not SaveSuccessful Try SaveToUnderlyingDirectory(name) SaveSuccessful = True Catch ex As ObjectAlreadyExistsException name = Regex.Replace(name, "(" & Increment.ToString() & ")?$", (Increment + 1).ToString()) Increment += 1 End Try End While
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.