Malcolm Clark wrote: > p:=pLongWord(AddrOfDataToSearch); > result:=false; > for i:=0 to ((LengthInBytes div 4)-1) do > if p^ <> 0 then exit > else inc(p); ....
I had to activate this thread again as I'm not convinced that inc(p) will increment 4 bytes at a time. I'm thinking that p^ will access 4 bytes, but inc(p) will only increment 1 byte of the block, and then access the same 3 bytes overlapped plus 1 new byte. Or am I wrong? I think it will need to be inc(p,4) ? Ross. _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi

