Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

delphi ²ð·Ö×Ö·û´®

×î½üÔÚʹÓÃDelphi¿ª·¢Ò»ÖÖÓ¦ÓÃϵͳµÄ¼¯³É¿ª·¢»·¾³¡£ÆäÖÐÐèҪʵÏÖÒ»¸ö×Ö·û´®²ð·Ö¹¦ÄÜ£¬·½·¨»ù±¾Ô­ÐÍÓ¦¸ÃÊÇ£º
procedure
SplitString(src: string
; ch: Char; var
stringList: TStringList);
Ä¿µÄÊÇʹÓÃ×Ö·ûch²ð·Ösrc×Ö·û´®£¬°Ñ²ð·ÖµÄ½á¹û·ÅÈëstringListÖС£ÀýÈ磺src:='abc|def|ghi'; ch='|'µÄʱºò£¬·µ»ØµÄstringListÓ¦¸ÃÊÇ{abc, def, ghi}¡£
¿ªÊ¼µÄʱºò£¬ÎÒÊÇʹÓûñÈ¡chÔÚsrcÖгöÏÖµÄλÖã¬È»ºóʹÓÃStrUtilsµ¥ÔªÌṩµÄRightStr·½·¨À´·Ö¸î×Ö·û´®£¬²¢½«½á¹û±£´æÔÚstringListÖеġ£³ÌÐòÈçÏ£º
procedure
SplitString(src: string
; ch: Char; var
stringList: TStringList);
var
 
 p: Integer;
 s: string
;
begin
 try
  stringList.Clear;
        s := src;
        repeat
         p := Pos(ch, s);
            if
p = 0 then
begin
             stringList.Add(s);
                Break;
            end
;
            stringList.Add(LeftStr(s, p - 1));
            s := RightStr(s, Length(s) - p);
        until
False;
    except
     raise
;
    end
;
end
;
Òź¶µÄÊÇ£¬ÉÏÃæµÄ³ÌÐò¶ÔÓÚsrcÖÐËùÓÐ×Ö·û¶¼ÊÇ°ë½Ç×Ö·û£¨Ó¢ÎÄ¡¢Êý×Ö¡¢±êµãµÈ£©µÄ×Ö·û´®£¬ÔËÐÐÆðÀ´ÍêȫûÓÐÎÊÌ⣬¶øÈç¹ûsrcÖк¬ÓÐÖÐÎÄ£¬ÎÊÌâ¾Í±È½Ï´óÁË£»Length·½·¨¿ÉÒÔÕýÈ·µØÈ¡µÃ×Ö·û´®µÄ³¤¶È£¬¶øLeftStrºÍRightStrÔò²»ÄÜÕýÈ·µØ½ØÈ¡×Ö·û´®¡£
Ò»¸ö±È½ÏºÏÀíµÄÌæ´ú·½·¨ÊÇ£º±éÀúsrcÖеÄËùÓÐ×Ö·û£¬Èç¹ûµ±Ç°×Ö·û²»ÊÇch£¬Ôò°Ñch¼Óµ½ÁÙʱ×Ö·û´®tmpstrÖУ¬·ñÔò½«tmpstr¼ÓÈëstringList²¢½«tmpstr¸³ÖµÎª¿Õ×Ö·û´®¡£ÕâÑù×ö¿ÉÒԱܿª¶ÔÖÐÎÄ×Ö·ûµÄ´¦Àí¡£³ÌÐòÈçÏ£º
procedure
TXNetDevEnvHelper.SplitStrin


Ïà¹ØÎĵµ£º

DELPHIÓû§µÇ¼·½°¸

3.2  Óû§µÇ¼·½°¸
ÔÚ½øÈëÒ»¸öϵͳʱ£¬±ØÐëÏÈÔڵǼ´°ÌåÖÐÊäÈëÕýÈ·µÄÓû§ÃûºÍÃÜÂë²ÅÄܽøÈë¡£ÕâÑù¿ÉÒÔÈ·±£ÏµÍ³µÄ°²È«ÐԺͱ£ÃÜÐÔ£¬µÇ¼´°ÌåµÄÖÆ×÷°´ÕÕϵͳµÄ´óС¼°Óô¦£¬¿ÉÒÔ·ÖΪ²»Í¬µÄµÇ¼´°ÌåÑùʽ£¬ÔÚϵͳµÚÒ»´ÎµÇ¼ǰ£¬Ê×ÏÈÒª¶Ô²Ù×÷Ô±ÐÅÏ¢½øÐÐÏàÓ¦µÄÉèÖᣱ¾½Ú½«¶ÔµÇ¼´°Ìå¼°²Ù×÷Ô±¹ÜÀí´°ÌåµÄÖÆ×÷¹ý³Ì½øÐÐÏêϸµÄ˵Ã÷ ......

DelphiÖÐʵÏÖÎļþ¿½±´µÄÈýÖÖ·½·¨

DelphiÖÐʵÏÖÎļþ¿½±´µÄÈýÖÖ·½·¨
1£®µ÷ÓÃAPIº¯Êý
procedure CopyFile(fromFileName,ToFileName:string);
var
f1,f2:file;
Begin
AssignFile(f1,fromFileName); file://Ö¸¶¨Ô´ÎļþÃû
AssignFile(f2,ToFileName); file://Ö¸¶¨Ä¿±êÎļþÃû
Reset(f1);
Try
Rewrite(f2);
Try
If Lzcopy(TfileRec(f1).handle,TfileRe ......

Delphi¿Ø¼þ°²×°·½·¨

    ÓÉÓÚ×é¼þÌṩµÄ·½Ê½²»Í¬£¬ËùÒÔ°²×°µÄ·½·¨Ò²ÊDz»Ò»ÑùµÄ£¬ÏÂÃæ¾ÍÄ¿Ç°³£¼ûµÄ¸÷ÖÖÐÎʽµÄ×é¼þµÄ°²×°·½·¨½éÉÜһϡ£ 
    1  Ö»ÓÐÒ»¸öDCUÎļþµÄ×é¼þ¡£DCUÎļþÊDZàÒëºÃµÄµ¥ÔªÎļþ£¬ÕâÑùµÄ×é¼þÊÇ×÷Õß²»Ïë°ÑÔ´Â빫²¼¡£Ò»°ãÀ´Ëµ£¬×÷Õß±ØÐë˵Ã÷´Ë×é¼þÊʺÏDelphiµÄÄÄÖÖ°æ±¾£¬Èç¹û°æ±¾²»¶ ......

delphiÖÐregister, pascal, cdecl, stdcall, safecall

×¢£º ʹÓôíÎ󣬻òÕßÔڸüӵĵط½Ã»Óмӣ¬¿ÉÄÜ»á³öÏÖ"privileged instruction"´íÎ󣬻òÕßµØÖ··ÃÎÊ´íÎó¡£
³£¼ûµÄµ÷ÓùßÀýÓÐregister, pascal, cdecl, stdcall, safecall¡£º¯ÊýµÄµ÷ÓùÜÀí¾ö¶¨Á˲ÎÊýÈçºÎ´«µÝ¸ø×Ó¹ý³Ì£¬²¢´Ó¶ÑÕ»ÖÐÍ˳ö£¬ÒÔ¼°¼Ä´æÆ÷ÔÚ²ÎÊý´«µÝÖеÄʹÓ㬴íÎóºÍÒì³£µÄ´¦Àí¡£DelphiÖÐĬÈϵĵ ......

Delphi µÄÔËËã·ûÁбí


·ÖÀà
ÔËËã·û
²Ù×÷
²Ù×÷Êý
½á¹ûÀàÐÍ
·¶Àý
ËãÊõÔËËã·û
+
¼Ó
ÕûÊý£¬ÊµÊý
ÕûÊý£¬ÊµÊý
X + Y
-
¼õ
ÕûÊý£¬ÊµÊý
ÕûÊý£¬ÊµÊý
Result - 1
*
³Ë
ÕûÊý£¬ÊµÊý
ÕûÊý£¬ÊµÊý
P * InterestRate
/
ʵÊý³ý
ÕûÊý£¬ÊµÊý
ʵÊý
X / 2
div
ÕûÊý³ý
ÕûÊý
ÕûÊý
Total div UnitSize
mod
È¡Ä£
ÕûÊý
ÕûÊý
Y mod 6 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ