当前位置: 动力学知识库 > 问答 > 编程问答 >

vba - how to check if XML is loaded in VB6

问题描述:

I have this code in VB6 for search a postcode in Brazil:

MousePointer = 11

Dim xlink As String

Set myXML = New DOMDocument

myXML.resolveExternals = True

myXML.validateOnParse = True

myXML.async = False

xlink = "http://cep.republicavirtual.com.br/web_cep.php?cep=" & cep & "&formato=xml"

myXML.Load (xlink)

The URL fails many times i want to add a second link

xlink2 = "https://viacep.com.br/ws/" & cep & " /xml"

I want to know if myxml have loaded 15 sec , if delay more than 15 load another link.

Thanks in advance

分享给朋友:
您可能感兴趣的文章:
随机阅读: