if ( PChAct = aBuffer[PCFind] ) then begin if PCFind = (aCount-1) then begin Result := PCMem-aCount+1; ExIT; end else begin if PCFind = 0 then PCHIT := PCMem+1; Inc ( PCMem ); Inc ( PCFind ); end; end else begin PCMem := PCHIT; PCFind := 0; PCHIT := PCMem+1; end; until False;
finally // Cursor := pCR; end;
end; function TForm1.check2(filename:string):boolean;
const cHexChars = ’0123456789ABCDEF’; var h,n,x, findlen,FindPos,mypos : longint; up , findstr:string; pSTR : String; pCT,pCT1: integer; begin result:=false; findstr,mypos给值: mypos:=mypoint;
pSTR := ’’; pCT1 := Length ( findstr ) div 2; for pCT := 0 to (Length ( findstr ) div 2) -1