'i' was not declared in this scope, seems it's a simple question

#include <SPI.h>
byte addressPot0 =     0b00010001;      //To define potentiometer use last two BITS 01= POT 0
byte addressPot1 =     0b00010010;      //To define potentiometer use last two BITS 10= POT 1
byte addressPot0and1 = 0b00010011;  //To define potentiometer use last two BITS 10= POT 0 and 1
byte CS= 10;    //Chip control goes to pin 10
byte SHDN = 9;  //Chip SHUTDOWN - PIN 9
byte RS = 8;    //Chip RESET - PIN 8

void setup()
{
  pinMode (CS, OUTPUT); //CS - When High, sets chip to read the data.
  pinMode (SHDN, OUTPUT); //CS - When High, sets chip to read the data.
  pinMode (RS, OUTPUT); //CS - When High, sets chip to read the data.
  
  digitalWrite(SHDN, HIGH); //Power ON (HIGH)
  digitalWrite(RS, HIGH); //Power NO RESET (LOW)
  SPI.begin();
}

void loop()
{
pot_O();
pot_T();
}
void pot_O()

{
  PotHighAndLow_mt(addressPot0);      //Change POT values on Pot0
  PotHighAndLow_mt(addressPot1);     //Change POT values on Pot1
  PotHighAndLow_mt(addressPot0and1); //Change POT values on both
  
  
  digitalPotWrite(245,  addressPot1);
  digitalWrite(SHDN, LOW); //Power OFF (LOW)
  delay(5000); //delay for 5 seconds to test current consumption of potentiometer
  digitalWrite(SHDN, HIGH); //Power ON (HIGH)
  digitalPotWrite(245,  addressPot1);
  
  digitalWrite(RS, LOW); //Power NO RESET (LOW)
  delay(100); //delay 100 mls
  digitalWrite(RS, HIGH); //Power RESET (HIGH)
  delay(10000); //delay 10 sec

}

void PotHighAndLow_mt(byte address)
{
  /* We have limit from 130 - 255 just for LED test, but for other projects it can be 0-255 */
      for (int i = 130; i <= 255; i++)
    {
      digitalPotWrite(i,address);
      delay(10);
    }
   // delay(500);
    for (int i = 255; i >= 130; i--) 
    {
      digitalPotWrite(i,address);
      delay(10);
    }
}



int digitalPotWrite(byte value, byte address)
{
  digitalWrite(CS, LOW); //Set Chip Active
  SPI.transfer(address);
  SPI.transfer(value);
  digitalWrite(CS, HIGH); //Set Chip Inactive
}

void pot_T()

{
  for (int i = 0; i <=120; i++);
{
SPI.transfer(0);
SPI.transfer(i);
Delay (10);
}

for (int i = 120; i >=0; i--);
{
SPI.transfer(0);
SPI.transfer(i);
Delay (10);
}
}

ERROR:
\Digital_Potentiomter_MCP42100_With_Arduino.ino: In function 'void pot_T()':

Digital_Potentiomter_MCP42100_With_Arduino:47:14: error: 'i' was not declared in this scope

SPI.transfer(i);

^

Digital_Potentiomter_MCP42100_With_Arduino:48:10: error: 'Delay' was not declared in this scope

Delay (10);

^

Digital_Potentiomter_MCP42100_With_Arduino:54:14: error: 'i' was not declared in this scope

SPI.transfer(i);

^

Digital_Potentiomter_MCP42100_With_Arduino:55:10: error: 'Delay' was not declared in this scope

Delay (10);

^

Using library SPI at version 1.0 in folder: C:\Users\HUA.DELLV-PC\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.11\libraries\SPI
exit status 1
'i' was not declared in this scope

for (int i = 0; i <=120; i++); lose the trailing semicolon

Delay is not the same as delay

Perfect.
Thank you for help. questions done.

Delay is not the same as delay

Is it delay or delay(10); that is meaningful in the context of Arduino Platform?

GolamMostafa:
Is it delay or delay(10); that is meaningful in the context of Arduino Platform?

Delay (capital D) is meaningful (and wrong) in the context of the program. He/she seems to have got the point

UKHeliBob:
Delay (capital D) is meaningful (and wrong) in the context of the program. He/she seems to have got the point

Delay(capital D) could be meaningful if the OP was writing program using Pseudo codes; but, he was writing the program using standard HLL.

Delay(capital D) could be meaningful if the OP was writing program using Pseudo codes; but, he was writing the program using standard HLL.

It could also be meaningful if he had a function named Delay in his program or an #included library but he didn't

He posted real code that did not compile not pseudo code. One of the error messages related to the fact that the Delay function was not declared, probably because he has mistyped the name of the delay function.

As I said, he seems to have got the point.

UKHeliBob:
It could also be meaningful if he had a function named Delay in his program or an #included library but he didn't

He posted real code that did not compile not pseudo code. One of the error messages related to the fact that the Delay function was not declared, probably because he has mistyped the name of the delay function.

As I said, he seems to have got the point.

All these cross debates are meant for better understanding of ours and the OP.