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

Delphi Êý×éµÄ¸´ÖÆ

aArr : array[0..9] of Integer = (0, 1, 2, 3, 4, 5, 6, 7, 8, 9£©£»

Ôõô°ÑÊý×éaArrµÄµÚ3λµ½µ½µÚ6λ¸´ÖƵ½ÁíÍâÒ»¸öÊý×éÀïÃæÈ¥£¿
²»ÓÃfor¿ÉÒÔ×öµ½Âð£¬ÓÐʲôº¯Êý¿É¹©Ê¹Óã¿
var
  A1,A2 : integer;
  A1 := aArr[2];
  A2 := aArr[5];

Delphi(Pascal) code:

unit Unit1;

interface

uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;

type
TForm1 = class(TForm)
Button1: TButton;
Label1: TLabel;
Button2: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;

var
Form1: TForm1;
aArr: array[0..9] of Integer = (0, 1, 2, 3, 4, 5, 6, 7, 8, 9);

implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
var
aArr2: array[0..3] of Integer;
begin
Move(aArr[3], aArr2[0], SizeOf(Integer)*4);
end;

end.




2Â¥µÄ¿ÉÒÔʵÏÖ¡£

²»ºÃÒâ˼,Àí½â´íÎó.

Delphi(Pascal) code:

Â¥Ö÷ÊÇ·ñÕâÖÖÏë·¨£º

var
aArr: array[0..9] of Integer = (0, 1, 2, 3, 4, 5, 6, 7, 8, 9);
...
procedure CopyArr(var ATargetArr: array of Integer; ASourceArr: array of Integer);
var
L: Integer;
begin


Ïà¹ØÎÊ´ð£º

PythonÖеÄUnicodeÔÚDelphiÈçºÎ»¹Ô­³ÉGb2312£¿

ÒÑÖªPython ÖУº
s = unicode("²âÊÔ", "gb2312")
s = u'\u6d4b\u8bd5'
print s
²âÊÔ

ÔÚDelphiÀïÃæÈçºÎ½«\u6d4b\u8bd5ÕâÑùµÄ»¹Ô­³ÉGb2312µÄºº×ÖÄØ£¿
ÕÒµ½¸ö·½·¨
......

delphi activx µÄÎÊÌâ 110·Ö

ÎÒÔÚÍøÉÏÕÒÁ˸ö¹ØÓÚIEBHOµÄ´úÂ룬Ȼºó°´ÕÕÄĸöÉèÖÃÁË£¬ºóÀ´ÔËÐеÄʱºò³öÏÖ 
[´íÎó] Unit1.pas(15): Undeclared identifier: 'GetTypeInfoCount'
[´íÎó] Unit1.pas(15): Undeclared identifier: 'GetTypeInfo ......

delphi »ñµÃÖ÷°åµÄÓ²¼þÐÅÏ¢

delphi »ñµÃÖ÷°åµÄÓ²¼þÐÅÏ¢

Win32_DiskDriveÒª»»Ò»Ï£¬Äã²éÏÂmsdn

http://hi.baidu.com/xuchuantao17/blog/item/dd6f1fdfe22ec41a48540314.html

²å¸ö±ê¼Ç

ÒýÓÃ
Win32_DiskDriveÒª»»Ò»Ï£¬Äã²éÏÂmsdn
Õ ......

delphi¼òµ¥ÎÊÌâ

IF THEN ELSEÖжà¸öÌõ¼þÔõôд£¬È磺×Ö·û´®S1£¬S2£¬S3£¬S4¾ùÒª²»Îª¿Õ¡£
ÔõôÑù°ÑËüдµ½IFÖÐÈ¥£¿
Çë¸÷λ°ï°ï棬лл£¡
if (S1<>'') and (S2<>'') and (S3<>'') and (S4<>'') then
begin ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ