四月二日

vs调试:

第一种F10调试,单步执行,不进入调用的其它函数
第二种F11调试,单步执行,进入调用的其它函数

运行到当前光标处:Ctrl+F10

条件中断:

跟踪点:进入断点时的自定义操作

自定义宏:

1 Sub DumpLocals() 
2 Dim outputWindow As EnvDTE.OutputWindow 
3 outputWindow = DTE.Windows.Item(EnvDTE.Constants.vsWindowKindOutput).Object  
4 Dim currentStackFrame As EnvDTE.StackFrame 
5 currentStackFrame = DTE.Debugger.CurrentStackFrame  
6 outputWindow.ActivePane.OutputString(“*Dumping Local Variables*” + vbCrLf) 
7 For Each exp As EnvDTE.Expression In currentStackFrame.Locals 
8 outputWindow.ActivePane.OutputString(exp.Name + ” = ” + exp.Value.ToString() + vbCrLf) Next End Sub 
1 Public Const WORKER_PASSWORD_CHAR As Char = "*"c

什么意思?

下一句:

1 txtWorkerCode.PasswordChar = WORKER_PASSWORD_CHAR 'txtWorkerCode.PasswordChar的类型为char()

vb访问:Oracle数据库

For information about how to configure SQL*Net, contact your Oracle DBA, refer to the SQL*Net documentation, or refer to your Oracle ODBC driver Help file for an example of a connection string.

Oledb 与odbc

VB中的过程:子程序过程(sub procedure)、函数过程、属性过程

基础知识是需要通过运用,一方面扎实掌握,另一方面创新,产生新的价值才是目的

运行一个VB应用程序时,首先发生Initialize事件,接着是Load事件,然后Activate事件

事件过程与通用过程

ByVal :passed by value; ByRef:passed by Reference

函数可以类似于sub的调用:

Call 函数名([实参表])

   函数名 [实参表]

   放弃函数的返回值

数组可以作为过程的参数。过程定义时,形参列表中的数组用数组名后的一对空的圆括号表示。在过程调用时,实际参数表中的数组只用数组名表示,省略圆括号。

  当用数组作为过程的参数时,进行的不是“值”的传递,而是“址”的传递。

属性过程用于返回和设置对象属性的值,还可以设置对属性的引用,可以创建和引用用户自定义属性用”Property“保留字开始的为属性过程。

debug.Assert Method:Checks for a condition; if the condition is false, outputs messages and displays a message box that shows the call stack

1         Set(ByVal Value As String)
2             Debug.Assert(m_bInUse = True, "Please Call DBOracle.Clear() First")

 

posted @ 2013-04-02 11:35  xtypeu  阅读(132)  评论(0编辑  收藏  举报