Eval(mid(Rept(" And AddRow(GridName,""名称"",[名称])",2),5))
1.Rept(" And AddRow(GridName,""名称"",[名称])",2) 结果为“ And AddRow(GridName,"名称",[名称]) And AddRow(GridName,"名称",[名称])”
mid(“ ",5) 返回从第5个位置之后的所有字符,即“AddRow(GridName,"名称",[名称]) And AddRow(GridName,"名称",[名称])”,去掉了最前面的第一个“and”
2.如第一点所说,参数5是取值以第5个字符为起始位置
3.Eval函数中字符串使用“”,具体计算函数不需引号