The Attached image is the result i get whenever i run the app please help me fix it
I am retrieving the text from sqlite db browser but the text thats no appear on Labelforlg
I am retrieving the text from sqlite db browser but the text thats no appear on Labelforlg
B4X:
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim strUtils As StringUtils
Private LG_ScrollView As ScrollView
Private Labelhead1 As Label
Private LabelforLg As Label
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("LGPageDetails")
LG_ScrollView.Panel.LoadLayout("lgdetaillbl")
Dim rs As ResultSet
rs = Starter.SQL1.ExecQuery("SELECT * FROM LGDetails WHERE PageTitle = '" & Starter.PageTitle & "' ")
Do While rs.NextRow
LabelforLg.Text = rs.GetString("Body")
Labelhead1.Text = rs.GetString("PageTitle")
LG_ScrollView.Panel.Height = LabelforLg.Height
LabelforLg.Height = strUtils.MeasureMultilineTextHeight(LabelforLg, LabelforLg.Text)
Loop
rs.Close
End Sub