I get an OutofBounds exception when an empty ListBox is pressed in the DoublePressed event when running the code. The following code stops execution but allows the App to continue running if I select resume. I don’t have a Desktop license yet to build. Wondering if this will work in a built stand alone App.
Try
Window1.ListIDLabel.Text=Me.CellTextAt(Me.SelectedRowIndex, 1)
Window1.ListItemTextField.Text=Me.CellTextAt(Me.SelectedRowIndex, 0)
Catch e as RuntimeException
If e IsA EndException Or e IsA ThreadEndException Then
Raise e // Re-raise the exception for the framework
End If
MsgBox(e.Message+"Blank Entry Selected")
end Try