根據list檔文件去比對電腦名稱,用變數無法判斷正卻與否,可否請大大幫忙看一下
本帖最后由 cks1203 于 2014-8-7 08:27 编辑local $t="gggve1234"
local $t1=StringMid($t,4,2)
dim $i=1
local $y=FileReadLine("list.txt",$i)
local $caption=""
Local $d = StringSplit($y, ",")
For $j=1 to $d
if $caption="" then
$caption=""&$t1&" == " &$d[$j]
Else
$caption=&$caption" or "&$t1&" == " &$d[$j]
EndIf
Next
if $caption == true Then
MsgBox(0,"","sure")
Else
MsgBox(0,"","no content")
EndIf請問各位大大:
小弟新學可否將$caption 比較後得到值呈現出來, 但不知是否語法有誤
p.s(list.txt 檔內為ve)
謝謝
页:
[1]