English 中文(简体)
第6号法典中控制名称的 Od行为
原标题:Odd behaviour of casing of a control name in vb6 code
  • 时间:2010-09-11 12:34:56
  •  标签:
  • ide
  • vb6

我对一个叫做lblTotal的表格进行了贴标签控制。

在我上次对存放处作出承诺期间,我惊讶地看到这一表格在经过修改的清单中点名。

当我看一下该守则时,我发现,现在所有的这种控制名称都出现在lbl Total(即小吨)。

控制权的名称本身是lblTotal

Further when I used ctrl-F with case matching to find lbltotal it would only find one as instantly all other occurrances would revert to lblTotal. So it seems that at some moment after the IDE records some event in the code window it gets around to making the casing conform to the control s name.

What I don t understand is how this happened in the first place without a change to the control s name? Can someone explain how?

PS After I wrote the above I saw this. Interestingly I also had a string variable that s name had its casing changed during the same commit and I assumed I must have changed it myself but now, having read the above I think it s because the same variable name was present in a different scope. However there is no other occurrance of lbltotal anywhere else in the project.

PPS lblTotal实际上是lblTotal(0),在操作期间,还装上了更多的份数,因此许多代码参考资料是lbl Total(x1)。 我不知道这是否有什么变化。

Finally has anyone ever seen vb6 change the casing of string literals by itself? (Please God no!!) Actually this last point is what causes me the most unease about this experience as in TOO many places in the codebase string literals are used in conditional clauses.

问题回答

在提到的行为之外,VB6还将重新列出在任何COM接口中可能出现的变数,这意味着,如果你提到新的图书馆,或改变其秩序,你就会重新站起来,更不用说。

一次,我甚至写了一张小节目,从姓名的字典上看,“右包”VB6源代码;主要缺点是,在每一来源作出承诺之前,你必须加以管理。

但是,我认为,我们这里的答案是:>。 或许是解决我所看到问题的最佳办法,因为他量化并利用了民主选举学会的行为来解决这一问题。

至少没有VB3 - VB3,在任何档案中重新记录每个变数,这些档案被装入。 这使你更确切地了解不同名称的打字案例。





相关问题
Prevent windows from queuing shellexecute requests

Win.ShellExecute 0, "open", "C:dirprogram.exe", "arguments", vbNullString, SW_SHOWNORMAL Win.ShellExecute 0, "open", "http://www.google.com", vbNullString, vbNullString, SW_SHOWNORMAL I want google....

Why is My Loop Only Deleting One File?

Using VB6 In a folder, i have n number of files, i want to delete a 0 kb files code Dim filename5 As String filename5 = Dir$(txtsourcedatabasefile & "*_*", vbDirectory) MsgBox filename5 Do ...

How to check the filesize?

Using VB6 I have the text file with different sizes, so i want to delete the file where filesize = 0 kb. How to make a vb6 code for deleting the 0 kb files. Need vb6 code Help

File Rename problem?

I m using VB6 and I have a folder where I have n number of files. I want to change the file extension to .txt. I used the code below to change the extension of all .fin files to .txt. Dim filename1 ...

Error 20728-F while in using Crystal Reports in VB6

I m using Crystal Reports in my VB6 project, but I m facing error while loading the report in crystalreport1.action=1; Please give me some solution for this problem. It is showing the error as Error ...

DllRegisterServer entry point was not found

When running my vb6 application I am getting error like, runtime error 53 : file not found: rscomclNoMsg.dll then i tried to register that dll from cmd line using regsvr32. Then I am getting ...

SQL Server 2000, ADO 2.8, VB6

How to determine if a Transaction is active i.e. before issuing Begin Transaction I want to ensure that no previous transaction are open.. the platform is VB6, MS-SQL Server 2000 and ADO 2.8