Function obtener_Columna(ruta : String) : Integer;
Var i , resultado: Intreger;
Begin
Resultado := -1;
For i :0 1 to Grid.ColCount – 1 do
If Grid[0, i] = ruta then resultado = i;
If resultado = -1 then
Begin
Grid.ColCount := Grid.ColCount + 1;
Resultado := Grid.ColCount – 1;
Grid[0, resultado] := ruta;
End;
Obtener_columna := resultado;
End;