¡¾×ªÌû¡¿ÓÃPB±àдһ¸ö¼òµ¥µÄÍøÂçÐÅÏ¢ÊÕ¼¯Ð¡¹¤¾ß
ÓÃPB±àдһ¸ö¼òµ¥µÄÍøÂçÐÅÏ¢ÊÕ¼¯Ð¡¹¤¾ßÈí¼þinet·Ç¿ÉÊÓ¶ÔÏóÊÇPBÖÐÌṩµÄרÃÅÓÃÀ´ºÍInternet½»»¥µÄ¶ÔÏó£¬Ê¹ÓøöÔÏó¿ÉÒÔ±àдInternet´¦Àí³ÌÐò¡£¸Ã¶ÔÏóʹÓÃʱ£¬ÐèÒªÊ×ÏÈ´´½¨Ò»¸ö¼Ì³Ð×ÔInternetResult¶ÔÏóµÄÓû§×Ô¶¨Òå¶ÔÏó£¬ÔÚ¸Ã×Ô¶¨Òå¶ÔÏóÉϱàд½Å±¾¶Ô´ÓInternetÉÏ·µ»ØµÄ½á¹û½øÐд¦Àí¡£ÏÂÃæÎÒÃǸø³öÒ»¸öʵÀý£¬¸ÃʵÀý´ÓÆóÒµ»ÆÒ³Ö®ÀàµÄÍøÕ¾ÖлñÈ¡¸÷¸öÆóÒµµÄÐÅÏ¢£¬±£´æµ½±¾µØ¼ÆËã»úÖС£ÕâÑùµÄÈí¼þ¶ÔÓÚ´ÓÊÂµç»°ÍÆÏúµÄ¹«Ë¾ÊǷdz£ÐèÒªµÄ¡£
°´ÕÕÒÔϲ½Ö迪·¢¸ÃÈí¼þ£º
1¡¢´´½¨Ò»¸öStandard Class£¬Ñ¡ÔñInternetResult¶ÔÏó£¬È»ºóÔڸöÔÏóȱʡº¯ÊýInternetDataÖбàдÈçϽű¾£¨ÎÒÃÇÏ£Íû½«»ñÈ¡µ½µÄÄÚÈݱ£´æµ½ÎļþÖУ¬ÎļþµÄ¸ñʽÊÇHTMLµÄ£©£º
String ls_filename
string ls_content
integer li_FileNum
integer li_pos1,li_pos2
ls_content = string(data)
li_pos1 = Pos(ls_content,'<table align=center border=0 cellpadding=0 cellspacing=1>')
li_pos2 = Pos(ls_content,'ÁªÏµÈË')
li_pos2 = pos(ls_content,'</table>',li_pos2) + len('</table>') - 1
ls_content = Mid(ls_content,li_pos1,li_pos2 - li_pos1)
if Pos(ls_content,'010') > 0 then
ls_filename = String(now(),'hhmmss') + right('00000' + string(rand(100)),3) + '.htm'
li_FileNum = FileOpen("d:\data\" + ls_filename, &
StreamMode!, Write!, Shared!, Replace!)
FileWrite(li_FileNum, ls_content)
FileClose(li_FileNum)
end if
Return 1
±£´æ¸ÃÓû§¶ÔÏó£¬ÃüÃûΪn_ir_msgbox¡£
2¡¢´´½¨Ò»¸ö´°¿Ú£¬ÌṩÓû§²Ù×÷½çÃæ¡£·Ç³£¼òµ¥µÄÒ»¸ö´°¿Ú£¬ÃüÃûΪw_main£¬Ôڸô°¿ÚÖж¨ÒåÒ»¸ö´°¿ÚʵÀý±äÁ¿£º
n_ir_msgbox iir_msgbox
Ôڸô°¿ÚÉÏ·ÅÖÃÒ»¸öÃüÁî°´Å¥£¬ÔÚÃüÁî°´Å¥µÄClickedʼþÖбàдÈçϽ̱¾£º
inet linet_base
String ls_url
long ll_index
SetPointer(HourGlass!)
ls_url = 'http://www.6608.net/qy-ml/view_epinfo_vip.php?id='
iir_msgbox = CREATE n_ir_msgbox
if GetContextService("Internet", linet_base) = 1 THEN
For ll_index = 21272 to 1 step -1
This.Text = String(ll_index)
linet_base.GetURL(ls_url + String(ll_index), iir_msgbox)
next
END IF
DESTROY iir_msgbox
ÏàÐÅÉÏÃæµÄ³ÌÐò£¬Èç¹ûÄãÄܹ»ÕæÕýÀí½â£¬¿ÉÒÔ¸ÄÔì»òÕß±àд³É·Ç³£Ê¹ÓõÄÍøÂçÐÅÏ¢´¦Àí³ÌÐò¡£
×ªÔØ [url="http://www.study01job.com/pb/book/list.php?form=all"]http://www.study01job.com/pb/book/list.php?form=all[/url]
Ò³:
[1]