Is it possible to pass a column as a parameter?

Is it possible to pass a column as a parameter?

string get.getColumnVariable(column Column_Name, string variableName, column Column_Name2)
{
if (count(Student_Info_Form [Column_Name == input.variableName]) > 0)
{
myCol = Student_Info_Form [col == input.variableName];
return myCol.Column_Name2;
}
else
{
return "";
}
}

something like that so i can basically get info from different forms by calling the same function.. (more global variables i guess)

thanks