当前位置:首页 » 编程博文
开发技术指南» 文章正文
    引言: /******************************************************************************* Author:iret* Desc: T-SQLExtractor* Extract the comments and blanks...
 

 

    摘要: 还是在写那个数据库应用的输入界面,在为对话框中的控件绑定变量时发现。如果给edit绑定cstring的话虽然能使用mfc的动态数据效换,但是没办法去控制edit的行为。例如,我一开要让这些edit全被disabled掉,只有在开打编辑状态后才能enabled让操作者对edit的内容进行编辑。所以,如果给edit绑定cedit虽然能控制编辑框的行为但不能使用mfc的动态数据交换了。这样要自己写数据......
 ·readonly vs. const [c#]    »显示摘要«
    摘要:readonly vs. const [c#] feature: readonly和const都是用来标识常量的。 const可用于修饰class的field或者一个局部变量(local variable);而readonly仅仅用于修饰class的field。 const常量的值必定在编译时就已明确并且恒定的;而readonly常量却有一点不同,那就是其值可以在运行时编译,当......


T-SQL Extractor

/******************************************************************************

 * author: iret 【程序编程相关:从Internet上抓取指定URL的源码

【推荐阅读:如何诊断排除基本的 TCP/IP 问题

 * desc: t-sql extractor 【扩展信息:InStrRev 函数

 *           extract the comments and blanks and tabs from the sql statement

 * 为了比较两个存储过程,或者sql语句是否一致,抽空写了一个可以删除t-sql 语句中的注释与空格的脚本,挺精致的样子.

 * created date: 2004/10/21

 ******************************************************************************/

declare @script varchar(8000), @extractedscript varchar(4000)

set @script = ´´

/*从系统表获取存储过程的脚本*/

select @script = @script + [text]

from syscomments, sysobjects

where

    syscomments.[id] = sysobjects.[id] and sysobjects.[name] like ´%campa_appsegment´

/*标志符*/

declare @inlinecommented bit, @insectioncommented bit, @instring bit, @position int

/*当前字符*/

declare @curchar int

/*前一个字符*/

declare @prechar int

set @inlinecommented = 0

set @insectioncommented = 0

set @instring = 0

set @extractedscript = ´´

set @position = 1

set @prechar = null

while @position <= datalength(@script)

begin

    --获取当前字符


...   下一页
 ·jasperreport模板元素的含义    »显示摘要«
    摘要: 父元素名称 元素名称 属性名称 含义 元素出现次数 取值类型 根元素 jasperreport 模板根元素 1 <property>, <reportfont>, <parameter>, <querystring> ,<field>, <......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE