Patterns: Replace with empty string for lookup edits when editvalid is nothing

This commit is contained in:
Jonathan Jenne 2022-07-15 09:36:24 +02:00
parent 8e47ba31e7
commit 0e51eec9b1

View File

@ -52,7 +52,12 @@ Namespace Modules
Case GetType(DevExpress.XtraEditors.LookUpEdit)
Dim oLookupEdit As DevExpress.XtraEditors.LookUpEdit = oControl
oReplaceValue = oLookupEdit.EditValue
If IsNothing(oLookupEdit.EditValue) Then
oReplaceValue = String.Empty
Else
oReplaceValue = oLookupEdit.EditValue
End If
Case GetType(LookupControl3)
Dim oLookupControl3 As LookupControl3 = oControl