Terence
Nov 19th, 2000, 09:52 AM
I am writing a program to retrieve data from a web page which contains data in <TD>s in a <TABLE> tag. I am using webbrowser to get the document and already got the html element of the td. But the data is separated by a <BR> which actually represents 2 fields. The coding of the problem html is :
<td nowrap align=center valign=middle width=30>
<font size=2 color="#009933">226<br>
<font size=2 color="#0000ff">60</td>
If I use "innertext" to get it, I got 22660. The problem is that there is no way to distinguish the 2 fields as 2, 2660 or 22,660 or 226,60 or 2266,0.
Is these a method for retrieving the field before and after a <BR> ?
Anyone knows how to use the getadjacenttext method ?
<td nowrap align=center valign=middle width=30>
<font size=2 color="#009933">226<br>
<font size=2 color="#0000ff">60</td>
If I use "innertext" to get it, I got 22660. The problem is that there is no way to distinguish the 2 fields as 2, 2660 or 22,660 or 226,60 or 2266,0.
Is these a method for retrieving the field before and after a <BR> ?
Anyone knows how to use the getadjacenttext method ?