这个数据类型为什么不对呢?
CREATE CURSOR 大乐透 (红1 C(2), 红2 C(2), 红3 C(2),红4 C(2),红5 C(2),兰1 C(2),兰2 C(2),期号 C(5))
cUrl = "https://webapi.
oHttp = CREATEOBJECT("MSXML2.XMLHTTP")
oHttp.Open("GET", cUrl, .F.)
oHttp.Send()
t1 = SECONDS()
jsCode = 'var data=' + oHttp.responseText + ';' +;
'var list=data["value"]["list"];' +;
'function getList(n,name){return list[n][name];}'
oSC = CREATEOBJECT("ScriptControl")
oSC.Language = "JavaScript"
oSC.AddCode(jsCode)
FOR i=0 TO oSC.eval('list.length')-1
lyText = oSC.run("getList",i,"lotteryDrawNum")
lztext = oSC.run("getList",i,"lotteryEquipmentCount")
lmText = oSC.run("getList",i,"lotteryUnsortDrawresult")
h1 = Substr(lmText ,1,2)
h2 = Substr(lmText ,4,2)
h3 = Substr(lmText ,7,2)
h4 = Substr(lmText ,10,2)
h5 = Substr(lmText ,13,2)
l1 = Substr(lmText ,16,2)
l2 = Substr(lmText ,19,2)
lztext = ALLTRIM(lztext)
INSERT INTO 大乐透 VALUES (h1,h2,h3,h4,h5,l1,l2,lyText)
ENDFOR
? SECONDS() - t1 && 1.6秒