Esempio n. 1
0
    public string Char(dyk.Script.Code.Variable.Number num)
    {
        string res = "";

        res += (char)num.Value;
        return(res);
    }
Esempio n. 2
0
 public string Column(dyk.Script.Code.Variable.Number strTab, dyk.Script.Code.Variable.String strCol)
 {
     if (gTab.SystemColumns.GetDataByParentIDAndText(strTab.Value, strCol.Value))
     {
         return(gTab.SystemColumns.Structure.Name);
     }
     else
     {
         throw new Exception("未在表中找到\"" + strCol.Value + "\"字段。");
     }
 }
Esempio n. 3
0
    public string TableByID(dyk.Script.Code.Variable.Number num)
    {
        if (gTab.SystemTables.GetDataByID(num.Value))
        {
            //如只有一个表,则附带默认表功能
            if (gbTable)
            {
                gnTable = 0;
            }
            else
            {
                gnTable = (int)gTab.SystemTables.Structure.ID;
                gbTable = true;
            }

            return(gTab.SystemTables.Structure.Name);
        }
        else
        {
            throw new Exception("未找到表\"" + num.Value + "\"。");
        }
    }