摘要:
Value Sql DescriptionftUnknown Unknown or undeterminedftString char Character or string fieldftSmallint smallint 16-bit integer fieldftInteger int 32-bit integer fieldftWord tinyint 16-bit unsigned integer fieldf... 阅读全文
posted @ 2008-04-01 16:23
delphi中间件
阅读(540)
评论(0)
推荐(0)
摘要:
首先,在主窗体中声明以下private过程:procedure TMainForm.DoEnterAsTab(var Msg: TMsg; var Handled: Boolean);beginif Msg.Message = WM_KEYDOWN thenbeginif Msg.wParam = VK_RETURN thenKeybd_event(VK_TAB, 0, 0, 0);end; //ifend;在主窗体的OnCreate事件中加入:Application.OnMessage := DoEnterAsTab; 阅读全文
posted @ 2008-04-01 16:13
delphi中间件
阅读(357)
评论(0)
推荐(0)
摘要:
ShellExecute的功能是运行一个外部程序(或者是打开一个已注册的文件、打开一个目录、打印一个文件等等),并对外部程序有一定的控制。 有几个API函数都可以实现这些功能,但是在大多数情况下ShellExecute是更多的被使用的,同时它并不是太复杂。下面举例说明它的用法。开始一个新的应用程序 ShellExecute(Handle, 'open', PChar('c:/test/app.exe'), nil, nil, SW_SHOW);打开记事本,并打开一个文件(系统能识别记事本应用程序的路径,因此我们不必使用绝对路径) ShellExecute(Han 阅读全文
posted @ 2008-04-01 15:55
delphi中间件
阅读(206)
评论(0)
推荐(0)
摘要:
(一) 使用动态创建的方法首先创建 Excel 对象,使用ComObj:var ExcelApp: Variant;ExcelApp := CreateOleObject( 'Excel.Application' );1) 显示当前窗口:ExcelApp.Visible := True;2) 更改 Excel 标题栏:ExcelApp.Caption := '应用程序调用 Microsoft Excel';3) 添加新工作簿:ExcelApp.WorkBooks.Add;4) 打开已存在的工作簿:ExcelApp.WorkBooks.Open( 'C:/ 阅读全文
posted @ 2008-04-01 15:11
delphi中间件
阅读(331)
评论(0)
推荐(0)
摘要:
{在Delphi中,一个控件上能否成为其它控件的父控件取决于此控件的ControlStyle属性。ControlStyle属性是集合类型的,如果此集合包含csAcceptsControls元素,则它能接受其它控件;否则,它就不能成为其它控件的父控件。ControlStyle属性只能在控件的构造函数(Constructor)中指定,在程序运行时它是不能被改变的。所以如果希望窗口状态条上面能包含其它控件,我们只需要在继承类中重载TStatusBar控件的Constructor函数,并且让控件的集合属性ControlStyle中包含csAcceptsControls即可。 }unit StatusB 阅读全文
posted @ 2008-04-01 14:11
delphi中间件
阅读(379)
评论(0)
推荐(0)

浙公网安备 33010602011771号