至少需要4个参数,建议使用内部函数:http://www.foxtable.com/webhelp/topics/1486.htm
比如定义函数abc,函数代码为
dim 表名 as string = args(0)
dim 行 as integer = args(1)dim 列 as string = args(2)
dim 值 as string = args(3)tables(表名).rows(行)(列) = 值
然后按钮调用函数代码为:
Functions.Execute("abc","表A",1,2,"我是一个值") '给表A第2行,第3列的单元格赋值为"我是一个值"
[此贴子已经被作者于2023/9/4 20:32:16编辑过]