Android Question [Solved] B4XDialog default value

makis_best

Active Member
Licensed User
Hi

I have a B4XDialog with only one ConfigureForNumbers box

B4X:
dialog.Initialize(Activity)
        input.Initialize
        input.lblTitle.Text = "Quantity:"
        input.ConfigureForNumbers(True, False)
I want here something like input.ConfigureForNumbers.DefaultValue = 1
        Wait For (dialog.ShowTemplate(input, "OK", "", "Cancel")) Complete (Result As Int)
        If Result = xui.DialogResponse_Positive Then
            Quantity1 = input.Text
        End If


How I can do it every time the B4XDialog pop up to have a default value?

Thank you
 
Top