delphi Á¬½ÓÊý¾Ý¿â °ïÎÒ½âÊÍÕâ¶Ï³ÌÐòÊÇʲôÒâ˼
procedure TPut_Form.FormActivate(Sender: TObject);
begin
with adotable1 do
begin
tablename:='produce_type_t';
if not active then
active:=true;
first;
dbcombobox2.Items.Clear;
dbcombobox1.Items.Clear;
end;
while not adotable1.Eof do
begin
dbcombobox2.Items.add(adotable1.Fields.fields[0].asstring);
dbcombobox1.Items.add(adotable1.Fields.fields[1].asstring);
adotable1.next;
end;
dbcombobox2.ItemIndex:=0;
dbcombobox1.ItemIndex:=0;
end;
Delphi(Pascal) code:
procedure TPut_Form.FormActivate(Sender: TObject);
begin
with adotable1 do
begin
tablename:='produce_type_t'; //ÉèÖñíÃû
if not active then
active:=true; //´ò¿ªtable
first; //Ö¸ÏòµÚÒ»Ìõ¼Ç¼
dbcombobox2.Items.Clear; //Çå¿Õitems
Ïà¹ØÎÊ´ð£º
delphiÈçºÎÏòAccessÊý¾Ý±íÖÐ×Ô¶¨Òå×Ö¶Î?È»ºóÏÔʾµ½DBGridÖÐ
ÔõôûÈËÀíÎÒѽ
·Ö·Ö߯ÉÙßÖ£¬Ò»°ãÈ˶¼ÀÁµÃ½øÀ´¡¡*^_^*
SQL
creat table TableName(ID Counter Primary Key,FieldName varchar(20))
ADOQue ......
delphiÄÚÖõļÓÃܽâÃܵ¥ÔªÊÇÄĸö£¿
DelphiÓÐÄÚÖüÓÃܽâÃܵ¥Ôª£¿
delphiÀïÓиö¼ÓÃܺͽâÃܵĵ¥Ôª
ÒýÓÃ
delphiÀïÓиö¼ÓÃܺͽâÃܵĵ¥Ôª
ÊÇÄĸö£¿
windowsµÄapi£¿
±ê×¼¼ÓÃܵÄÔ´´úÂë£¬ÍøÉÏ ......
ÎÒ°²×°µÄÊÇÆóÒµ°æ¡£¡£¡£
ÎÒÎÊÏ£¬ CTRL+×ó¼ü Äܲ鿴 windows.pas Âð£¿
¾ÍÊÇ ½Ó¿ÚÀïµÄwindows¡£
µ±È»¿ÉÒÔ,CTRL+×ó¼üµã»÷Interface²¿·ÖµÄWindows¾Í¿ÉÒÔÁË
ɶɶÆóÒµ°æ£¿È¥°²×°Ä¿Â¼¿´¿´libÎļþ¼ÐÏÂÓÐÃ»Ó ......
Delphi
ÔõÑù»ñÈ¡ÍøÒ³²¿·ÖÄÚÈÝ£¨´úÂ룩£¬²¢ÇÒÏÔʾ³öÀ´£¡
£¨Ö»ÊÇÍøÒ³ÀïÃæµÄÒ»²¿·ÖÄÚÈݲ¢²»ÊÇÈ«²¿£©
ûŪ¶®£¡
ÀàËÆwebseverµÄ¹¦ÄÜ£¿
¹À¼ÆÊÇÀûÓÃieµÄ½Ó¿Ú¡£¡£¡£¡£¡£¡£¡£¡£
ÊÇÀàËÆwebseverµÄ¹¦ÄÜ ......