会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
rayhuang
博客园
首页
新随笔
联系
订阅
管理
2010年4月10日
delphi中如何响应键盘的组合键(如:ctrl k)
摘要: 1:varHot: boolean;procecure form1.formkeydown(.....);beginif (key = VK_K) and (ssShift in shift) thenif hot thenbegin//处理ctrl kkhot := false;endelse hot := trueelsehot := false;end; 2:可以设置快捷键,也可以在程序中设...
阅读全文
posted @ 2010-04-10 22:06 rayhuang
阅读(1938)
评论(0)
推荐(0)
编辑
1. 在delphi根据TshiftState值来判断用户按下Ctrl,shift,alt等键的方法
摘要: procedure TForm1.FormMouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);beginif ssCtrl in shift then ShowMessage('ssCtrl');shift 是一个集合变量。type TShiftState = set of (ssS...
阅读全文
posted @ 2010-04-10 22:03 rayhuang
阅读(992)
评论(0)
推荐(0)
编辑
2010年2月26日
C#操作Oracle的blob
摘要: using System;using Fjeptri.DataAccess.DataHelper;using System.Data.OracleClient;using System.Data;using System.IO;using System.Windows.Forms;using blank; namespace WindowsApplication1{/// <summary&...
阅读全文
posted @ 2010-02-26 16:59 rayhuang
阅读(2139)
评论(0)
推荐(0)
编辑
2010年2月25日
sql经典语句
摘要: 1. wm_concat函数也来打擂台使用场景:简单的将一列的字段通过逗号连接起来。Example:select a1,(wm_concat(b1),from aa group by a1如果是10G版本以下通用的语句如下SELECT t.id id, MAX(substr(sys_connect_by_path(t.sname, ','), 2)) strFROM (SELECT id, sna...
阅读全文
posted @ 2010-02-25 21:31 rayhuang
阅读(264)
评论(0)
推荐(0)
编辑
2010-02-25 Oracle 函数大全(字符串函数,数学函数,日期函数,逻辑运算函数,其他函数)
摘要: Oracle 函数大全(字符串函数,数学函数,日期函数,逻辑运算函数,其他函数)SQL中的单记录函数 1.ASCII 返回与指定的字符对应的十进制数; SQL> select ascii(’A’) A,ascii(’a’) a,ascii(’0’) zero,ascii(’ ’) space fr...
阅读全文
posted @ 2010-02-25 21:26 rayhuang
阅读(194)
评论(0)
推荐(0)
编辑
公告