本博客记录傻猫的生活、工作和学习,并与大家一起分享快乐.
该日志由 samool 发表于 2008-03-11 10:24 AM
Delphi常用的函数库,引用作者的话“今天在整理以前写过的代码,发现有些函数还是挺实用的,决定将其贴到Blog上,与众多好友一起分享。”
源文地址:http://blog.csdn.net/chris_mao/archive/2007/11/01/1862017.aspx
该日志标签: 函数
该日志由 samool 发表于 2007-10-23 3:19 PM
用这个函数进行字符串替换操作,比Delphi自带的ReplaceString要快N倍,效率一流,非常快,不愧为汇编级函数操作,哈哈.
下载函数单元文件:[attach=1619]
该日志由 samool 发表于 2007-10-22 10:17 AM
IsNumeric 判断字符串是否为数字,如果是数字返回true,如果包含有汉字或字符的话返回false. 由于Delphi本身没有IsNumeric这个函数,不像其它语言,这个函数相当于Java的IsNaN函数。
该日志由 samool 发表于 2007-10-22 9:45 AM
调用外部程序,等待外部程序运行完成,相当于Showmodal功能,呵呵
该日志由 samool 发表于 2007-10-17 3:08 PM
The first and biggest of these restrictions is that on Windows NT and Windows 2000, the process that is calling LogonUser must have the SE_TCB_NAME privilege (in User Manager, this is the ""Act as part of the Operating System"" right). The SE_TCB_NAME privilege is very powerful and should not be granted to any arbitrary user just so that they can run an application that needs to validate credentials. The recommended method is to call LogonUser from a service that is running in the local system account, because the local system account already has the SE_TCB_NAME privilege.
该日志由 samool 发表于 2007-10-11 4:49 PM
今天在搞一个程序中,要求返回多个值,我知道用数组使用,但以前还没有做过,于是在网上找了一下,得到这个东东,原来自己定义一个类型,然后将函数的类型设为自定义类型就可以了,我定义的是字符串数组,函数返回值当然是多个字符串了,呵呵。
可以函数过程中设定返回数组的大小,SetLength (result,5)就可以。
该日志由 samool 发表于 2006-05-27 6:00 PM
该日志标签: 函数