View Single Post
  #1   Spotlight this post!  
Unread 26-09-2007, 03:21
SwartMumba SwartMumba is offline
Registered User
no team
 
Join Date: Sep 2007
Location: TX <---I'm here
Posts: 2
SwartMumba is an unknown quantity at this point
help with large loop

Can someone please help me to correct my program. I have a variable, LargeNumber. The maximum value that LargeNumber will be is 320000000000, thus I have to declare LargeNumber as Int64. The problem is that the loop does not want to work with my variable, I think because it is declared as Int64. When I try to run the program I get an error message that says, "For Loop control variable must have ordinal type." The following is my Loop:

for Loop := 1 to LargeNumber do
begin

end;

{Since Loop is going to have the same value as LargeNumber, I also declared it as int64}