C
chatopsoft
Unregistered / Unconfirmed
GUEST, unregistred user!
<SELECT class=input1 name=language>
<OPTION selected value=1>英 → 汉</OPTION>
<OPTION value=3>汉 → 英</OPTION>
</SELECT>
以上是网页内的内容
代码这样写为什么会出错?
if (doc.all.item(i).tagName = 'SELECT ')and //一定大写
(doc.all.item(i).name='language')then
begin
p:=combox.ItemIndex+1;
if p=1 then
begin
doc.all.item(i).value:=p;
end
else
begin
doc.all.item(i).value:=3;
end;
请大家帮我看看
出错内容是这样的
project xxxxx.exe raised exception class EaccessViolation
with message 'Access violation at address 004A8137 in module
'xxxxxx.exe'. Read of address 00000000'.Process stopped.Use or
Run to continue.
<OPTION selected value=1>英 → 汉</OPTION>
<OPTION value=3>汉 → 英</OPTION>
</SELECT>
以上是网页内的内容
代码这样写为什么会出错?
if (doc.all.item(i).tagName = 'SELECT ')and //一定大写
(doc.all.item(i).name='language')then
begin
p:=combox.ItemIndex+1;
if p=1 then
begin
doc.all.item(i).value:=p;
end
else
begin
doc.all.item(i).value:=3;
end;
请大家帮我看看
出错内容是这样的
project xxxxx.exe raised exception class EaccessViolation
with message 'Access violation at address 004A8137 in module
'xxxxxx.exe'. Read of address 00000000'.Process stopped.Use or
Run to continue.