tab with program lines

Hello,

i have a extra tab, thats working with one like this

char brand[] ="   Hello all   ";

but now i wan't to put the following code on another tab with all display lines together like this

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

but...
this is not working and how can i recall this line in the main tab?

i hope this is going to make my code more clear

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.