u2-scripts 和 Universe 基本代码之间的区别

发布于 2024-09-30 01:16:46 字数 52 浏览 1 评论 0原文

U2 脚本和 UniVerse 数据库中的 UniVerse Basic 代码有什么区别?

What is the difference between U2 scripts and UniVerse Basic code in the UniVerse database?

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

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

发布评论

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

评论(3

尴尬癌患者 2024-10-07 01:16:46

我不确定你所说的 U2 脚本是什么意思。 U2(Universe 或 UniData)中没有内置脚本引擎。 U2服务器只能运行UniBasic程序,这些程序被预编译成目标代码。但是,您可以在 UniBasic 程序内执行 shell 脚本(请参阅 PCPERFORM 命令)。

此外,还有客户端工具,可让您访问 U2 数据库并运行本机 UniBasic 代码其他语言,例如 C# 和 Java。

I'm not sure what you mean by U2 scripts. There isn't a scripting engine built in to U2 (Universe or UniData). A U2 server can only run UniBasic programs, which are pre-compiled into object code. You can, however, execute shell scripts from within a UniBasic program (see the PCPERFORM command).

Also, there are client tools available which let you access a U2 database and run native UniBasic code from other languages, such as C# and Java.

暖风昔人 2024-10-07 01:16:46

实际上,ProVerb 和 Paragraph 都是 UniVerse 中包含的脚本语言。您可以通过以下网址获取更多信息:u2ug.orgu2data.com

Actually, ProVerb and Paragraph are both scripting languages which are included in UniVerse. You can get more information at: u2ug.org or u2data.com.

孤蝉 2024-10-07 01:16:46

U2 中的脚本语言大多是 BASIC 语言拥有 EXECUTE 命令之前的遗留物。本质上,这意味着您无法从 BASIC 程序中执行 TCL 命令,最重要的含义是您无法从 BASIC 中生成具有范围限制标准的 SELECT 列表。

因此,任何需要访问条件限制 SELECT 列表的程序都需要在该 SELECT 列表处于活动状态时进行调用。为了在程序控制下创建此类列表,需要 TCL 脚本语言。它的早期版本被称为 PROC 或 ProVerb,并包括一些基本的流程控制。 PROC 的许多巴洛克噩梦产生于 70 年代和 80 年代,当 EXECUTE 命令包含在 BASIC 语言中时,这些都已经过时了。

如今,完全不需要了解任何 PROC 就可以在 U2 系统中工作,而且您很少会遇到长度超过几个命令的 PROC。

Paragraph (PA) 脚本语言来自 UniData。它简单易读,因此有损经验丰富的 U2 程序员使用它的尊严。

现在有人想谈论“F”相关词吗?

The scripting languages in U2 are mostly relics from a time before the BASIC language had the EXECUTE command. Essentially, this meant that you could not execute TCL commands from within BASIC programs, with the most important implication being that you could NOT generate SELECT lists with scope limiting criteria from within BASIC.

Consequently, any program that needed to access a criteria limited SELECT list need to be invoked with that SELECT list active. In order to get the creation of such lists under programmatic control, a TCL scripting language was necessary. Early incarnations of this were called PROC or ProVerb, and included some rudimentary flow control. Many baroque nightmares of PROC were produced in the 70s and 80s, and were all were obsolete when the EXECUTE command was included in the BASIC language.

Nowadays, it's possible to work in a U2 system without knowing any PROC at all, and you'll rarely encounter a PROC that's more than a couple of commands long.

The Paragraph (PA) scripting language is something that came in from UniData. It's simple and easy to read, and therefore beneath the dignity of experienced U2 programmers to use it.

Anyone want to talk about "F" correlatives now?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文