For i = 0 To lstSelectedRows.Size-1
...more code
Wait for (Lookup_SourceTrack (uPiece.Source, uPiece.SourceTrack)) Complete (SourceTracksFound As Boolean)
If SourceTracksFound Then
If Not(sb.IsInitialized) Then sb.Initialize
sb.Append(TAB).Append(uPiece.Source).Append(" Track ").Append(uPiece.SourceTrack).Append(CRLF)
End If
Next
End If
If sb.IsInitialized Then
Message = "The following Serial Nos and Tracks are already in the MusicBase:" & CRLF
Message = Message & sb.ToString & CRLF
Message = Message & "What do you want to do?"
fx.Msgbox2(MB_Add.frmPGAddition, Message, "New Pieces", "", "OK", "", fx.MSGBOX_WARNING)
End If