tab with program lines

You seem to be mixing functions and variables.

char test[] ={
  lcd.setCursor(0,1);
  lcd.print("Connecting...");
}

If you want this to be a function, then it would look something like this:

void printConnecting()
{
  lcd.setCursor(0,1);
  lcd.print("Connecting...");
}

It would be much easier to help you if you posted your entire code and gave us a better explanation on what your are trying to accomplish.