iOS Question B4XPage and B4XDialog. How do I use it?

IdasI4A

Active Member
Licensed User
Longtime User
On a B4XPage I want to use a Dialog to request a piece of data, but I get an error.
Am I doing something wrong?
Private Sub B4XPage_Created (Root1 As B4XView):
Dialog.Initialize(Root)

B4X:
    InputTemplate.Initialize
    InputTemplate.lblTitle.Text = "Introduzca el código"
    Wait For (Dialog.ShowTemplate(InputTemplate, "OK", "", "CANCEL")) Complete (Result As Int)
    If Result <> xui.DialogResponse_Positive Then
        Return
    End If
    Log(InputTemplate.Text)

 

IdasI4A

Active Member
Licensed User
Longtime User
Yes, put a username (anything) and click on login
 

Attachments

  • B4iProject.zip
    174.1 KB · Views: 173
Upvote 0

IdasI4A

Active Member
Licensed User
Longtime User
It seems that the version you've attached is v 1.03.
For v 1.04 should we wait for the next update of B4i?
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…