Exemplo n.º 1
0
        public HeronValue GetColumn(HeronValue column)
        {
            int nCol = -1;

            if (column is StringValue)
            {
                nCol = layout.GetFieldIndex((column as StringValue).GetValue());
            }
            else if (column is IntValue)
            {
                nCol = (column as IntValue).ToInt();
            }
            else
            {
                throw new Exception("Can only retrieve columns by name (String) or index (Int)");
            }
            return(new ListValue(GetValues(nCol), layout.GetTypes()[nCol]));
        }
Exemplo n.º 2
0
 public int GetFieldIndex(string s)
 {
     return(layout.GetFieldIndex(s));
 }