delphi Format Type
Format
typeµÄ¿ÉÄÜÖµÓÐÏÂÁÐÕâЩ£º
(1) d ÓзûºÅÊ®½øÖÆÊý
Args±ØÐëÊÇÓзûºÅÕûÐÍÊý¡£Èç¹ûÔÚ¸ñʽ»¯×Ö·û´®Öл¹¼ÓÈëÁË["." prec]£¬ÔòÈç¹ûArgs
µÄ³¤¶ÈÈç¹ûСÓÚ¸ø³öµÄ¾«¶ÈÊýʱ£¬ÔÚÇ°±ßÌî²¹0£»Èç¹û´óÓÚ¾«¶ÈÊý£¬°´Êµ¼Ê³¤¶ÈÏÔʾ¡£
Format('(%.3d)', [99]); ½á¹û£º'(099)'
(2) u ÎÞ·ûºÅÊ®½øÖÆÊý
Args±ØÐëÊÇÎÞ·ûºÅÕûÐÍÊý¡£ÆäËüÌØÐÔÓëdÒ»Ñù¡£
(3) e ¿Æѧ¼¼Êõ·¨
ÓÿÆѧ¼¼Êõ·¨ÏÔʾÊý¾Ý£¬ÐÎʽ´óÖÂÈçÏ£º'-d.ddd...E+ddd'¡£
Args±ØÐëÊÇÒ»¸ö¸¡µãÊý¡£Èç¹ûÊÇÒ»¸ö¸ºÊý£¬ÔòÔÚ×îÇ°ÃæÏÔʾһ¸ö·ûºÅ£»ÔÚСÊýµãÇ°Ãæ
×ÜÊÇÏÔʾһλÊý×Ö£»°üÀ¨Ð¡ÊýµãÇ°ÃæµÄÊý×ÖÔÚÄÚ£¬Êý×ֵĸöÊýÓÉ["." prec]À´È·¶¨£¬
Èç¹ûûÓÐÖ¸¶¨["." prec]£¬ÔòĬÈÏΪ15λ¾«¶È¡£Èç¹ûʵ¼ÊµÄÊý×Ö³¤¶È³¬³öÁËÖ¸¶¨µÄ
["." prec]£¬Ôò¸Õ¸Õ³¬³öµÄÄÇһλÊý×ÖËÄÉáÎåÈë¡£Ö¸Êý·ûºÅEºóÃæ×ÜÊÇÒª¸ú׿ӺŻò
¼õºÅ£¬²¢ÇÒÔÚºóÃæÖÁÉÙ¸ú×ÅÈýλÊý×Ö¡£
(4) f ¹Ì¶¨µÄ
Args±ØÐëΪ¸¡µãÊý£¬×ª»»ºóµÄÐÎʽ´óÖÂÊÇ'-ddd.ddd...'ÕâÑùµÄ¡£
Ïà¹ØÎĵµ£º
רÃÅÕë¶ÔdelphiµÄ£¬Ç¶ÈëÔ´ÂëµÄ²¡¶¾
Èç¹ûÔÚ X:\Program Files\Borland\Delphi7\Lib ·¢ÏÖÓÐ SysConst.bak (12KB) ºÍ
SysConst.dcu (18KB)£¬ÄÇô¹§Ï²Ä㣬ÖÐÕÐÁË¡£
http://topic.csdn.net/u/20090817/20/102ba10b-82ae-472d-a0be-6d54ce6a331b.html
http://bbs.2ccc.com/topic.asp?topicid=330829
http://bbs.2ccc.com/top ......
ת×Ô£ºhttp://www.52delphi.com/List.asp?ID=597&Page=1
¡¡¡¡ºËÐÄÌáʾ£ºº¯ÊýÐèÒª uses Direct3D9,D3DX9; żȻ·¢ÏÖÒ»¸öº¯Êý¿ÉÒÔÖ±½Ó±£´æ±íÃæµ½Îļþ1£¡ËùÒÔÐÞ¸ÄÁËһϣ¬º¯ÊýΪ£º...
procedure CaptureScreen(Const FileName: string);
var
BitsPerPixel: Byte;
pD3D: IDirect3D9;
pSurface: IDirect3DSurface9;
......
½«Ô¶³Ì¿ØÖÆÓ¦ÓÃÓÚ½ÌѧÖУ¬ÒѳÉΪĿǰ¼ÆËã»ú»¯½ÌѧµÄÖØÒªÊֶΡ£Ò»¶¨ÓкܶàµÄÍø³æÏëÁ˽âÕâÖÖÍøÂç½Ìѧ·½Ê½µÄ±à³ÌÔÀí°É¡£ÔÚ´ËÎÒÃǾÍÒÔÒ»¸ö¼òµ¥µÄÔ¶³Ì¿ØÖƳÌÐò×÷ΪʾÀý£¬ËµÃ÷ÕâÖÖÍøÂç±à³ÌµÄ»ù±¾ÔÀí¡£±¾³ÌÐòÒÔDelphi±à³ÌΪÀý¡£
¡¡¡¡Æäʵ¸Ã³ÌÐòµÄ¹¤×÷»úÖƺܼòµ¥£¬ÊÜ¿Ø·½ÔËÐÐÒ»¸ö³ÌÐò£¬ÓÃÓÚÕìÌý¶Ë¿Ú²¢½ÓÊÕÊý¾Ý°ü£¬¶øÖ÷¿Ø·½Í¨¹ý¶ ......
delphi ±àдµÄcom ¶ÔÏó ÓÃphpµ÷ÓÃ
µÄ
ʵÀý
delphi:
function Tmyxml.Get_xml: WideString;
begin
Get_xml:='wo shi a lei!';
end;
function Tmyxml.Get_xmldata: WideString;
var
xmlStr:string;
begin
xmlStr := '<?xml version="1.0" & ......
Delphi ¹Ø¼ü×ÖÏê½â---absolute//ËüʹµÃÄãÄܹ»´´½¨Ò»¸öбäÁ¿, ²¢ÇҸñäÁ¿µÄÆðʼµØÖ·ÓëÁíÒ»¸ö±äÁ¿Ïàͬ.
var
Str: string[32];
StrLen: Byte absolute Str;
//Õâ¸öÉùÃ÷Ö¸¶¨Á˱äÁ¿StrLenÆðʼµØÖ·ÓëStrÏàͬ.
//ÓÉÓÚ×Ö·û´®µÄµÚ0¸öλÖñ£´æÁË×Ö·û´®µÄ³¤¶È, ËùÒÔStrLenµÄÖµ¼´×Ö·û´®³¤¶È.
begin
Str := 'abc';
Edit ......