Problem with FOR Loop
From: developer (adnan)
Date: 11/27/03
- Next message: WPA van Deursen: "Re: Problem with FOR Loop"
- Previous message: David J Taylor: "Re: File address in HD"
- Next in thread: WPA van Deursen: "Re: Problem with FOR Loop"
- Reply: WPA van Deursen: "Re: Problem with FOR Loop"
- Reply: Ignacio Vazquez: "Re: Problem with FOR Loop"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Next message: WPA van Deursen: "Re: Problem with FOR Loop"
- Previous message: David J Taylor: "Re: File address in HD"
- Next in thread: WPA van Deursen: "Re: Problem with FOR Loop"
- Reply: WPA van Deursen: "Re: Problem with FOR Loop"
- Reply: Ignacio Vazquez: "Re: Problem with FOR Loop"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|