09-22-2024
07:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
09-22-2024
07:18 AM
Hi @OPthorsager . I suggest using the Do - Loop statement and exiting it if the text is empty. Here is an example of using the operator:
Dim sTest() As String = {"123", "456", "789", ""}
Dim iRow As Integer = 0
Do While Not String.IsNullOrEmpty(sTest(iRow))
MessageBox.Show(sTest(iRow))
iRow += 1
Loop
You can see that array 4 has empty text so we only get 3 messages.
Andrii Humeniuk - CAD Coordinator, Autodesk Certified Instructor
LinkedIn | My free Inventor Addin | My Repositories
Did you find this reply helpful ? If so please use the Accept as Solution/Like.