'TL,CM,PS,IO are public variables defined in B4XMainPage.
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
'load the layout to Root
Root1.LoadLayout("resview")
B4XPages.SetTitle(Me,"RESULT")
Log("The result is TL "&B4XPages.MainPage.TL)
html = File.GetText(File.DirAssets, "index.html")
html=html.Replace("$TL$",B4XPages.MainPage.TL)
html=html.Replace("$CM$",B4XPages.MainPage.CM)
html=html.Replace("$PS$",B4XPages.MainPage.PS)
html=html.Replace("$IO$",B4XPages.MainPage.IO)
html=html.Replace("$result$",B4XPages.MainPage.totResult)
web_Result.LoadHtml(html)
web_Result.ZoomEnabled=False
End Sub