Axapta:在 AOT 中按名称查找表

发布于 2024-08-10 01:50:16 字数 118 浏览 4 评论 0原文

我想使用 X++ 查询 AOT 以查看表名是否存在。谁能指出我正确的方向或提供一些示例代码来做到这一点?

如果表存在并且提供了名称 (str tableName),则返回 true;否则,返回 false。

I would like to query the AOT to see if a table name exists using X++. Can anyone point me in the right direction or provide some sample code for doing that?

If table exists with the name (str tableName) provided, return true; else, return false.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

盗心人 2024-08-17 01:50:16

您可以使用 tableName2Id 函数。如果表名无效,它将返回 0。

boolean IsValidTable(str _tableName)
{
    return tableName2Id(_tableName)==0 ? false : true;
}

You can use the tableName2Id function. It will return 0 if the table name isn't valid.

boolean IsValidTable(str _tableName)
{
    return tableName2Id(_tableName)==0 ? false : true;
}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文