请问这个循环语句错在哪里!
$i = 0While $i<=28
RegWrite ("HKEY_LOCAL_MACHINE\SOFTWARE\360Safe\History","$i","REG_DWORD","0x00000001"
$i=$i + 1
Wend
显示解析函数CALL错误
原句
RegWrite ("HKEY_LOCAL_MACHINE\SOFTWARE\360Safe\History","1","REG_DWORD","0x00000001")
RegWrite ("HKEY_LOCAL_MACHINE\SOFTWARE\360Safe\History","2","REG_DWORD","0x00000001")
RegWrite ("HKEY_LOCAL_MACHINE\SOFTWARE\360Safe\History","3","REG_DWORD","0x00000001")
...
......
RegWrite ("HKEY_LOCAL_MACHINE\SOFTWARE\360Safe\History","28","REG_DWORD","0x00000001")
从1-28个项
[ 本帖最后由 wwcbjs 于 2009-3-13 18:29 编辑 ] $i = 0
While $i<=28
RegWrite ("HKEY_LOCAL_MACHINE\SOFTWARE\360Safe\History",$i,"REG_DWORD","0x00000001" )
$i=$i + 1
Wend
解决了!少了个反括号,$i 在里面不能打引号 ......:face (27):
页:
[1]