Problem with FOR Loop

From: developer (adnan)
Date: 11/27/03


Date: Thu, 27 Nov 2003 15:56:49 +0100

I set breakpoint to line that variable T is set to ''. Variable I in FOR
loop doesn't go from 1 to 64 actually it go backward from 64 to 1 and I have
a problem. Why?

IP: array[1..64] of Integer =
                                (58, 50, 42, 34, 26, 18, 10, 2,
                                 60, 52, 44, 36, 28, 20, 12, 4,
                                 62, 54, 46, 38, 30, 22, 14, 6,
                                 64, 56, 48, 40, 32, 24, 16, 8,
                                 57, 49, 41, 33, 25, 17, 9, 1,
                                 59, 51, 43, 35, 27, 19, 11, 3,
                                 61, 53, 45, 37, 29, 21, 13, 5,
                                 63, 55, 47, 39, 31, 23, 15, 7);

T, BinText: String;
....
  T := '';
  for I := 1 to 64 do
    T := T + BinText[IP[ I ]];
....

BinText is String value of 64 characters.



Relevant Pages

  • Re: How to detect strings occurences
    ... you may found location of that string in memory and set breakpoint for ... accessing that memory ... > lea ecx, [eax] ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Problem with FOR Loop
    ... You try to do a conversion of your integers in IP to text. ... T, MyString: string; ... > I set breakpoint to line that variable T is set to ''. ... replace _nospam@nospam_ for @ to get a valid email address ...
    (borland.public.delphi.nativeapi)