Android Question B4XPreferencesDialog allow empty string in text field

RB Smissaert

Well-Known Member
Licensed User
Longtime User
Noticed that if I want to produce an empty string from a simple text field I can't do that.
Putting an empty field will just be ignored and it keeps the old text as it was before.
I think this is fine if the text field is set as required, but not otherwise.

The answer seems to be to comment out as below in Sub CommitChanges in PreferencesDialog.bas:

B4X:
        If Value = "" Then
            If Required Then
                GoToItem(i)
                Return False
            'Else
                'Continue
            End If
        End If

Am I overlooking some other way to produce an empty string?

RBS
 
Top