Android Question UM_searchView no value No display

Nabiloo

Member
Hi Everyone ,
I Have used This library https://www.b4x.com/android/forum/threads/b4x-xui-ui-max_co-libraries.128395/post-812055 Um_SearchView to make My work Better.
And This is my code
B4X:
[/QUOTE]

[QUOTE]
Sub Process_Globals
    'These global variables will be declared once when the application starts.
    'These variables can be accessed from all modules.

End Sub

Sub Globals
'    Dim box As B4XDialog
    Private IP_U As UM_searchView
    Private Stock_U As B4XView
    Private Alpha_U As B4XView
    Private Catalog_U As B4XView
    Private StockB_U As B4XSwitch
    Private AlphaB_U As B4XSwitch
    Private CatalogB_U As B4XSwitch
    Private Save_U As Button
    Private Cancel_U As Button
End Sub

Sub Activity_Create(FirstTime As Boolean)
    Activity.LoadLayout("MainPage")
   

    Dim lstset As List
    lstset.Initialize
    lstset = File.ReadList(File.DirInternal,"setlog.cfg")
    If lstset.Size > 0 Then
        IP_U = lstset.Get(0)
        If lstset.Size >= 2 Then
            If lstset.Get(1) = "false" Then
                StockB_U.Value = False
            Else
                StockB_U.Value = True
               
        End If
            If lstset.Size >= 3 Then
                If lstset.Get(2) = "false" Then
                    AlphaB_U.Value = False
                Else

                    AlphaB_U.Value = True
                End If
            End If
            If lstset.Size >= 4 Then
                If lstset.Get(3) = "false" Then
                    CatalogB_U.Value = False
                Else
                    CatalogB_U.Value = True
                End If
            End If
        End If
    End If

End Sub

Sub Activity_Resume
   
End Sub

Sub Activity_Pause (UserClosed As Boolean)

End Sub



Private Sub Button1_Click
   
    Activity.Finish
   
End Sub





Private Sub Save_U_Click
    Dim lstset As List
    lstset.Initialize
    lstset.add(IP_U)
    lstset.add(StockB_U.Value)
    lstset.add(AlphaB_U.Value)
    lstset.add(CatalogB_U.Value)
    File.WriteList(File.DirInternal,"setlog.cfg",lstset)
    Main.URLC = "http://" & IP_U & "/asa/"
    Msgbox2Async("             ذخيره شد","","تاييد","","",Null,True)
    Activity.Finish
End Sub

Private Sub Cancel_U_Click
    Activity.Finish
End Sub
But There is one PROBLEM
In this code, IP_U (UM_searchView) has taken a value but it is not displayed, and I have no idea how to solve this problem because I used UM_searchView.

Please Help Thanks
 
Top