filemaker 内爆数组
所以可以说我的计算是这样的,
Let (
[
$result[1] ="1";
$result[2] ="!";
$result[3] = "3";
$result[4] = "4";
$result[5] = "5";
$result[6] = "6";
$result[7] = "7";
$result[8] = "8";
$result[9] = "-";
$result[10] = "10";
$result[11] = "11";
$result[12] = "12";
$result[13] = "13";
$result[14] = "14";
$result[15] = "15";
$result[16] = "!";
];
$result[1] &
$result[2] &
$result[3] &
$result[4] &
$result[5] &
$result[6] &
$result[7] &
$result[8] &
$result[9] &
$result[10] &
$result[11] &
$result[12] &
$result[13] &
$result[14] &
$result[15] &
$result[16]
)
这是我制作的非常简单的数组,然后我希望它以字符串形式返回数组,是否有更简单的方法来连接结果数组的值?
** 自定义函数示例 *** 尝试使用 @chuck 的代码,不确定我做错了什么,我可以弄清楚如何上传文件,所以这里有一些 mimages
So lets say my calculation is this
Let (
[
$result[1] ="1";
$result[2] ="!";
$result[3] = "3";
$result[4] = "4";
$result[5] = "5";
$result[6] = "6";
$result[7] = "7";
$result[8] = "8";
$result[9] = "-";
$result[10] = "10";
$result[11] = "11";
$result[12] = "12";
$result[13] = "13";
$result[14] = "14";
$result[15] = "15";
$result[16] = "!";
];
$result[1] &
$result[2] &
$result[3] &
$result[4] &
$result[5] &
$result[6] &
$result[7] &
$result[8] &
$result[9] &
$result[10] &
$result[11] &
$result[12] &
$result[13] &
$result[14] &
$result[15] &
$result[16]
)
this is pretty straight forward I make and array and then I want to it to return the array as a string is there and easier way to concatenate the the values of the result array ?
** Sample custom functions ***
trying to use @chuck 's code not sure what I'm doing wrong I could figure out how to upload a file so here are some mimages
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您可以假设一旦到达数组中的空白值,就已经到达数组的末尾,那么这里有两个自定义函数应该可以工作。我写得很快,只测试了一次,但也许它会为你完成这项工作。
ConcatArray( VarName ) = _ConcatArray( VarName; 1 )
这只是调用具有初始值的递归函数。
然后我在 FileMaker 中打开数据查看器并使用此计算对其进行测试。
结果是
1!345678-101112131415!
。Here's two custom functions that should work if you can assume that once you get to a blank value in the array, you've reached the end of the array. I wrote it very quickly and only tested it once, but perhaps it'll do the job for you.
ConcatArray( VarName ) = _ConcatArray( VarName; 1 )
This just calls a recursive function with an initial value.
I then opened the Data Viewer in FileMaker and tested it with this calculation.
The result was
1!345678-101112131415!
.您可以使用递归自定义函数来完成此操作。指定结束范围和变量名称作为参数,然后它可以使用递增的索引号重复调用自身,直到该索引号等于结束范围。
You could do it with a recursive custom function. Specify the end range and the var name as parameters and it could then repeatedly call itself with an incrementing index number until that index number equaled the end range.