变量名“lsSQL”代表什么?意思是?

发布于 2024-08-30 19:11:54 字数 344 浏览 6 评论 0原文

我在关于 TDWTF 的最近的文章中注意到有人正在使用该变量名称 lsSQL 。我还注意到我正在处理的旧应用程序以及网络上的其他地方也有类似的变量名称,但我一直不知道ls前缀代表什么。

ls 是什么意思?那是什么样的记号?

谢谢,
汤姆

I've noticed in a recent article on TDWTF that someone was using the variable name lsSQL . I have also noticed similar variable names in a legacy application I am working on and in other places around the web, but I have never found out what the ls prefix stands for.

What does ls mean? What kind of notation is that?

Thanks,
Tom

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

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

发布评论

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

评论(2

慵挽 2024-09-06 19:11:54

我希望这是匈牙利表示法的用法,是类似基本的语言(即没有强类型)。在这里,我希望 l 表示类似于“局部变量”之类的东西,与“参数”或“全局变量”相对,而 s 表示类型,即字符串。

I would expect that this is a usage of Hungarian notation is Basic-like language (i.e. without strong typing). Here I would expect l to denote something like "local variable" as opposite to "argument" or "global variable", and s to denote type i.e. string here.

踏月而来 2024-09-06 19:11:54

如果我的 VB 命名约定 Fu 符合我的要求,我相信 ls 前缀代表本地字符串(然后 SQL 仅仅表明它是 SQL 语句)。

作为这些情况下的比较参考,我希望还有一个前缀为 lcon 的变量用于本地连接。

If my VB Naming Convention Fu serves me right, I believe the ls prefix stands for Local String (and then the SQL mearly indicates that it's the SQL Statement).

As a comparison reference in those situations, I would expect there to also be a variable prefixed with lcon for Local Connection.

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