Android Tutorial Parse HTML code

urikupfer

Member
Licensed User
Longtime User
Hi
For parsing html you can use the FromHtml(html string) function from Martin's labelextra library, it can parse many html tags.
uri
 

mohdsaks

Member
Licensed User
Longtime User
hi i like what u did really i need this code put am new with b4a my question is if i have a html page let say www.mypage.com/page1.htm and i want to get value from it let say the value is temperature for the room how i can do this with your code please help ??
 

Massy

Member
Licensed User
Longtime User
Hi, I'm trying to use your work but I get two errors... could you please help me understand why?

First error is in the line:
Node=MakeLCARbutton(lcar.LCAR_Orange, htag & Node & "</A>")
error says "Undeclared variable 'makelcarbutton' is used before it was assigned any value"
as it says "button" I tryed to add a button in designer named MakeLCARbutton but error changes in "Use of undeclared array: makelcarbutton"...

Second error is some lines down in:
Node=Node.Replace(" href=" & Chr(34) & "#", " href=" & Chr(34) & ScrollTo(0) & "#")
and it says "Undeclared variable 'scrollto' is used before it was assigned any value"

Thanks for your help
Massy
 

NeoTechni

Well-Known Member
Licensed User
Longtime User
MakeLCARbutton just converts an A HREF tag into HTML for a button in my app.
ScrollTo just returns the currently loaded HTML filename
Both can be swapped out for your own code
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…