Bug? Label doesn't change text value.

hello there everyone, i encounter a bug of label text when it inside a scollview where it doesnt let me remove that past value of a label instead it duplicate the words in the label
changel abel value:
    If widthtext.Text = "" Or lengthtext.Text = "" Or plantselected = "" Or planttype ="" Then
        Msgbox("Fill all the need requirement","Error")
        
    Else
        
        Dim w,l As Double
        ScrollView2.Panel.LoadLayout("Solve")
        ScrollView2.Panel.Height = Solvelayoutpanel.Height
        If selected = 1 Then
            Dim f,ferti,fert,sert,serti,cert,certi As Double
            w = widthtext.Text
            l = lengthtext.Text
            f = (w*l)/10000
            fert= f*10
            ferti = f*15
            sert = f*60
            serti = f*90
            cert = f*30
            certi = f*40
            ImageView1.Bitmap = LoadBitmap(File.DirAssets,"ricestage1.jpg")
            ImageView2.Bitmap = LoadBitmap(File.DirAssets,"ricestage2.JPG")
            ImageView3.Bitmap = LoadBitmap(File.DirAssets,"Ricestage3.jpg")
            Plants.Text = ""
            Solvetype.Text =  ""
            lengthlbl.Text =  ""
            widthlbl.Text =  ""
            totalsq.Text =  ""
            Firstagelbl.Text =  ""
            Secondagelbl.Text = ""
            Thirdstagelbl.Text =  ""
            t3p2.Text =  ""
            If  typep = 1 Then
                Plants.Text = plantselected
                Solvetype.Text = planttype
                lengthlbl.Text = "length " & l
                widthlbl.Text = "width "& w
                totalsq.Text = "Total sq2 " & (w*l)
                Firstagelbl.Text = fert &" to " & ferti & " KG of total mix ratio"
                Secondagelbl.Text = sert & " to "& serti & " KG of nitrogen fertilizer"           
                Thirdstagelbl.Text = sert & " to "& serti & " KG of nitrogen fertilizer"
                t3p2.Text = cert & " to " & certi & "KG of phosphorus fertilizer"
                end if
                end if
im new to b4a and doesn't know how to fix it
 

Attachments

  • LabelProblem.zip
    309.3 KB · Views: 152

klaus

Expert
Licensed User
Longtime User
You should post your project as a zip file so we could see what exactly you have done and how and give a concrete advice.
To zip the project use Export As Zip in The File menu.

1685358007134.png
 
Top