0

我在 ms-access 的模块中有一个名为“test”的函数。我从 javascript 调用这个相应的函数。下面是示例代码:

            var App = new ActiveXObject("Access.Application")
            var fullPath = "Path of accdb file";
            App.OpenCurrentDatabase(fullPath);
            App.Visible = false;
            var sub = App.Run("test"); // i am calling test procedure, which is public in module and dont require any input parameter.

这工作正常。

现在,我对功能测试进行了更改。函数测试有一个字符串作为输入参数(即 Public Function test(String as a) As Integer)。如何从java脚本调用测试函数?

4

1 回答 1

1

函数 Run(Procedure As String, [Arg1], [Arg2], [Arg3], [Arg4], [Arg5], [Arg6], [Arg7], [Arg8], [Arg9], [Arg10], [Arg11] , [Arg12], [Arg13], [Arg14], [Arg15], [Arg16], [Arg17], [Arg18], [Arg19], [Arg20], [Arg21], [Arg22], [Arg23], [ [Arg24]、[Arg25]、[Arg26]、[Arg27]、[Arg28]、[Arg29]、[Arg30])

var sub = App.Run("test","SOME input parameter STRING")
于 2013-10-03T11:27:03.317 回答