会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
浪迹天涯无处为家
所有软件活动包括根本任务——打造构成抽象软件实体的复杂概念结构;次要任务——使用编程语言表达这些抽象实体,在时间和空间内将它们映射成机器语言。
博客园
首页
新随笔
联系
订阅
管理
2015年9月11日
结构体和类中属性定义需要static地方
摘要: private function Readxxx:Integer;static;public class property XXX:Integer read ReadXXx;Txxx =recordclass procedure test;Static;end
阅读全文
posted @ 2015-09-11 10:47 云水浮萍
阅读(564)
评论(0)
推荐(0)
2015年4月18日
十万个为什么收集
摘要: 1、类型常量是什么?与常量、变量有什么区别?const x=5; //常量{$J+}//允许对变量赋值const y:Integer=5;//类型常量{$J-} Delphi7下@x查看地址会提示:Variable required @y则正常浪费好多时间,没测试完全,下面全是猜的,x做为资源编译进...
阅读全文
posted @ 2015-04-18 15:25 云水浮萍
阅读(219)
评论(0)
推荐(0)
2015年4月16日
群里人问的消息切换分页问题,我就标记一下
摘要: using System;using System.Diagnostics;using System.Runtime.InteropServices;using System.Text; namespace Text{ public class Program { [Dll...
阅读全文
posted @ 2015-04-16 17:03 云水浮萍
阅读(937)
评论(1)
推荐(0)
2015年4月13日
AnsiString类型定义的时候可以直接指定代码页,比如950繁体字,936日文
摘要: procedure TForm3.FormCreate(Sender: TObject);type AnsiStringForPage = type AnsiString(950);//代码页var AnsiStr: AnsiStringForPage; i: Integer; functi...
阅读全文
posted @ 2015-04-13 13:57 云水浮萍
阅读(389)
评论(0)
推荐(0)
2015年4月12日
CopyMemory Move使用笔记
摘要: 今天群里有人问函数使用问题,我就自己测试一下,顺便学习一下。uses math;procedure TForm2.Button1Click(Sender: TObject);type TTArrayByte= array of Byte;var FSource: PAnsiChar; FArr...
阅读全文
posted @ 2015-04-12 18:40 云水浮萍
阅读(669)
评论(0)
推荐(0)
System.Length 函数
摘要: function _PCharLen(P: _PAnsiChr): Longint;{$IFNDEF LEGACY_PCHARLEN}begin Result := 0; if P nil then while P[Result] #0 do Inc(Result);end;喜欢理由:简洁如果是...
阅读全文
posted @ 2015-04-12 16:31 云水浮萍
阅读(271)
评论(0)
推荐(0)
2015年4月2日
Delphi Helper Record Class
摘要: unit Unit1;{$DEFINE USESGUIDHELP}interfaceimplementation{$IFDEF USESGUIDHELP}uses System.SysUtils;{$ENDIF}procedure test;var a:TGUID;//System单元begin ...
阅读全文
posted @ 2015-04-02 13:38 云水浮萍
阅读(991)
评论(0)
推荐(0)
2015年4月1日
向量定义笔记
摘要: unit Unit2;interfaceuses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, V...
阅读全文
posted @ 2015-04-01 23:29 云水浮萍
阅读(462)
评论(0)
推荐(0)
2015年3月28日
关于日期与字符串转换时出错的分隔符,小记一下容易忘记
摘要: procedure TForm2.Button1Click(Sender: TObject);var pDateTime:TDateTime;begin FormatSettings.DateSeparator:='-'; //System.SysUtils; //System.SysUtils.F...
阅读全文
posted @ 2015-03-28 18:01 云水浮萍
阅读(193)
评论(0)
推荐(0)
类型与泛型标记
摘要: uses System.TypInfo; // Sync with compiler internals TTypeKind = (tkUnknown, tkInteger, tkChar, tkEnumeration, tkFloat, tkString, tkSet, tkClass, tkMe...
阅读全文
posted @ 2015-03-28 11:03 云水浮萍
阅读(432)
评论(0)
推荐(0)
下一页
公告