trepdas Active Member Licensed User Longtime User Jul 8, 2018 #1 Hello Good People. I've managed to implement the minisearchview into my project. in the minisearchview.bas I've modified the following and put the minisearchview results into two strings. Code: Private Sub CLV_ItemClick (Index As Int, Value As Object) Dim m As MSVItemData = Value TextField.Text = "" Log(m.item) Str5=m.Item strSplit=Regex.Split(",",Str5) Main.TmpStr=strSplit(0) Main.TmpStr1=strSplit(1) Sleep(0) now, in the main activity I created two labels. how do I display 'tmpstr' and 'tmpstr1' inside the main activity form? I was hoping for main.label1.text=str1 to work but I'm missing something... Thank you
Hello Good People. I've managed to implement the minisearchview into my project. in the minisearchview.bas I've modified the following and put the minisearchview results into two strings. Code: Private Sub CLV_ItemClick (Index As Int, Value As Object) Dim m As MSVItemData = Value TextField.Text = "" Log(m.item) Str5=m.Item strSplit=Regex.Split(",",Str5) Main.TmpStr=strSplit(0) Main.TmpStr1=strSplit(1) Sleep(0) now, in the main activity I created two labels. how do I display 'tmpstr' and 'tmpstr1' inside the main activity form? I was hoping for main.label1.text=str1 to work but I'm missing something... Thank you
DonManfred Expert Licensed User Longtime User Jul 8, 2018 #2 Code: Private Sub CLV_ItemClick (Index As Int, Value As Object) Dim m As MSVItemData = Value CallSub2(mCallBack,"ShowResult",Value) CLV.GetBase.Visible = False End Sub in Main Code: Sub ShowResult(item As Object) Dim m As MSVItemData = item Log("Main.ShowResult("&m&")") ' Do the split here and then change the Edits... End Sub Attachments minisearchnew.zip minisearchnew.zip 17.9 KB · Views: 507 Upvote 0
Code: Private Sub CLV_ItemClick (Index As Int, Value As Object) Dim m As MSVItemData = Value CallSub2(mCallBack,"ShowResult",Value) CLV.GetBase.Visible = False End Sub in Main Code: Sub ShowResult(item As Object) Dim m As MSVItemData = item Log("Main.ShowResult("&m&")") ' Do the split here and then change the Edits... End Sub