Wait Window "正在提取理科数据,请稍等......" Nowait
oIE = Createobject("internetexplorer.application")
oIE.Visible = .F.
&& or .T.
oIE.Navigate("http://www.)
tStartSecond = Seconds()
Do While oIE.Busy = .T. Or oIE.ReadyState#4
If Seconds() - tStartSecond > 10
&& Or 10+
Exit
Endif
Inkey(0.5)
Enddo
Create Cursor 理科 ( Fld0 C(10), Fld1 C(10), Fld2 C(10), Fld3 C(10) )
objTable = oIE.Document.getElementsByTagName("table").[0]
For Each objRow In objTable.Rows
Insert Into 理科 Values (;
objRow.cells(0).innertext, objRow.cells(1).innertext, ;
objRow.cells(2).innertext, objRow.cells(3).innertext )
Next
Wait Window "Finish." Nowait
oIE.Quit()
Select 理科
Browse Last
团队红星二锅头,队长王猛,领队李冲,顾问杨伟,副队张挺,外联马彪,内勤韩秀,人事顾闯,财务赵魁,后勤周强