M
mydelphibbs8848
Unregistered / Unconfirmed
GUEST, unregistred user!
再说明一下<br>procedure TFormMain.N3Click(Sender: TObject);<br>var sou,det,oo:string;<br> i,jchar;<br>begin<br>GetDir(0,sou);<br>showmessage(sou);<br>sou:=trim(sou)+'/DATA/SFQC.sqf';<br>oo:='F:/mydoc/myquaity/5new/DATE/SFQC.sqf';<br>showmessage(sou);<br>if sou=oo then showmessage('ok')else showmessage('nono');//这里总是弹出NO<br>i:=pchar(sou);<br>j:=pchar(det);<br>copyfile(i,j,true);<br>end;<br>我查看oo:='F:/mydoc/myquaity/5new/DATE/SFQC.sqf';<br>showmessage(sou);<br>看到两个串是一样的,即OO和SOU是一样的,可是<br>if sou=oo then showmessage('ok')else showmessage('nono');//这里总是弹出NO<br>这就是问题所在,不是copyfile的问题