|
-
Nov 19th, 2000, 10:52 AM
#1
Thread Starter
Member
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 ?
-
Nov 20th, 2000, 10:09 AM
#2
Frenzied Member
You will probably have to use innerHTML and parse the text
oOOo--oOOo
__ /\/\onte96
oOOo--oOOo
Senior Programmer/Analyst
MCP
[email protected]
[email protected]
Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..
-
Nov 20th, 2000, 11:01 AM
#3
Thread Starter
Member
I solved it by using instr and mid function and the <br> was represented by vbcrlf.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|