Re: array with same value all the time?



I can't see any problem with this, OTOH I think it would be much
clearer to code ...

{ delete used data }
for i := 0 to Length(AData) - iUsedData - 1 do
aData[i] := aData[iUsedData + i];
SetLength(aData, Length(aData) - iUsedData);

.... but maybe its how I look at shuffling bytes. <g>

Alan Lloyd

.



Relevant Pages

  • Re: array with same value all the time?
    ... Sonnich wrote: ... clearer to code ... ... SetLength- iUsedData); ... but maybe its how I look at shuffling bytes. ...
    (comp.lang.pascal.delphi.misc)
  • Re: array with same value all the time?
    ... clearer to code ... ... SetLength- iUsedData); ... but maybe its how I look at shuffling bytes. ... Actually Delphi counts down to in for loops, where the var itself is ...
    (comp.lang.pascal.delphi.misc)
  • Re: What are you reading?
    ... Can't be much more concise or clearer than that. ... OTOH, I don't believe that's what the U.S. Constitution actually ... says/intends. ...
    (rec.arts.theatre.musicals)