模拟网页输入框的切换焦点
网址:https://inv-veri.chinatax.
模拟输入发票代码 051002000511
如果输入错误输入框后面会显示“×发票代码有误!”,如果输入正确在显示“√”
自动输入发票代码后,如何让表单立即显示“√”of.wb.Document.getElementByid("fpdm").value="051002000511"
下面是全部代码
of = CREATEOBJECT("webForm")
of.show
susp
*READ EVENTS
RETURN
DEFINE CLASS webForm AS Form
ShowWindow = 2
WindowState = 2
ADD OBJECT WB AS Olecontrol WITH Width=this.width,Height=this.height,Anchor=15,OleClass="Shell.Explorer.2",Visible=.T.
PROCEDURE UnLoad
CLEAR EVENTS
ENDPROC
PROCEDURE Init
this.WB.Silent = .T.
this.WB.Navigate("https://inv-veri.chinatax.)
ENDPROC
ENDDEFINE