开发者

What does the variable name "lsSQL" mean?

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 f开发者_运维技巧or.

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

Thanks,

Tom


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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜