Android Question [Solved] B4XDialog default value

Discussion in 'Android Questions' started by makis_best, Apr 30, 2019.

  1. makis_best

    makis_best Active Member Licensed User

    Hi

    I have a B4XDialog with only one ConfigureForNumbers box

    Code:
    dialog.Initialize(Activity)
            input.Initialize
            input.lblTitle.Text = 
    "Quantity:"
            input.ConfigureForNumbers(
    TrueFalse)
    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
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Code:
    input.Text = 1
    Wait For (dialog.ShowTemplate(...)) ...
     
  3. makis_best

    makis_best Active Member Licensed User

    Thank you Erel.... You are saver...
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice