«á¤@­¶
«e¤@­¶
¦^¥Ø¿ý
¦^­º­¶
²Ä¤Q¤»³¹ ¼Æ¾ÚÂsÄý³¡¥óªºÀ³¥Î¤Îµ{¦¡³]­p¡]¤@¡^

¼Æ¾ÚÂsÄý³¡¥ó¥D­n¥Î©óÅã¥Ü©M½s¿è¸ê®Æ®wªí¤¤ªº¼Æ¾Ú¡A¦]¦Ó¥¦­Ì¤S±`±`³QºÙ¬°¼Æ¾Ú±±¨î³¡¥ó©Î¼Æ¾Ú©ú¤F³¡¥ó¡A¥¦­Ì¦b³¡¥ó¿ï¾ÜªO¤¤ªºDataControls­¶¤W¡A¹Ï16.1Åã¥Üªº¬ODataControls­¶¤Wªº¥þ³¡¼Æ¾ÚÂsÄý³¡¥ó¡A¨ä¤¤ªºTDBGrid³¡¥ó¥Î©ó¥þ¿Ã¹õÅã¥Ü©M½s¿è¸ê®Æ®wªí¤¤ªº°O¿ý¡ATDBNavigator¥Î©ó¦b¼Æ¾Ú°O¿ý¤§¶¡¾É¯è¡B´¡¤J°O¿ý¡B¸Ñ°£°O¿ý¡B§ë±H³Q­×§ïªº°O¿ý¡C¡@

¹Ï16.1 DataControls³¡¥ó­¶¤Wªº³¡¥ó¡@

¦bªí16.1¤¤¡A§Ú­Ì¹ïDataControls³¡¥ó¤Wªº¦U­Ó¼Æ¾ÚÂsÄý³¡¥óªº¤@¨Ç¯S©Ê¶i¦æ´y­z¡G¡@

ªí16.1 ¦U¼Æ¾ÚÂsÄý³¡¥ó·§­z

¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w

³¡ ¥ó ¦W ºÙ ¯S ©Ê ´y ­z

¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X

TDBGrid ¥Îºô®æªº§Î¦¡Åã¥Ü¸ê®Æ®wªí¤¤ªº°O¿ý¸ê°T¡Aºô®æ¤¤ªº

¦U¦C¥i¥H¦b³]­p¶¥¬q¨Ï¥ÎÄæ¦ì½s¿è¾¹«Ø¥ß¤]¥i¥H¦b¹B

¦æ¹Lµ{¤¤¥Îµ{¦¡³]©w

¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X

TDBNavigator ¥¦´£¨Ñ¤F¤@¸s¸s²Õ«ö¶s¥Î©ó¸ê®Æ®wªí¤¤ªº¾É¯è¡A½s¿è­×§ï¡B

´¡¤J¡B¸Ñ°£°O¿ý¥H¤Î¨ê·s¼Æ¾ÚªºÅã¥Ü¡ATDBNavigator¤¤

¥]§tªº±±¨î«ö¶s¦b³]­p¶¥¬q¥i¥H¶i¦æ¿ï¾Ü

¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X

TDBText ¥Î©óÅã¥Ü¸ê®Æ®wªí¤¤¥Ø«e°O¿ýªºÄæ¦ì­È

¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X

TDBEdit ¥Î©óÅã¥Ü©M½s¿è¸ê®Æ®wªí¤¤¥Ø«e°O¿ý«ü©wªºÄæ¦ì­È

¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X

TDBMemo ¥Î©óÅã¥Ü¸ê®Æ®wªí¤¤ªº³Æµù«¬Äæ¦ì¡A³Æµù«¬Äæ¦ì¤¤¥i

¥H¥]§t¦h¦æ¦r¤¸¬Æ¦Ü¥i¥H¬OBLOB(¤j¤G¶i¨îª«¥ó)¼Æ¾Ú

¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X

TDBImage ¥Î©óÅã¥Ü¸ê®Æ®wªí¤¤ªº¹Ï¹³Äæ¦ì©MBLOB¼Æ¾Ú

¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X

TDBListBox ·í¥Î¤á½s¿è­×§ïªí¤¤¥Ø«e°O¿ýªº¬Y­ÓÄæ¦ì®É¡A¸Ó³¡¥ó

¬O¤@­Ó¥]§t¦h­Ó¿ï¾Ü¶µªº¦C¥Ü¤è¶ô¡A¥Î¤á¥i¥H±q¤¤¿ï¾Ü

¤@­Ó¶µ°µ¬°Äæ¦ìªº­È

¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X

TDBComboBOx ¸Ó³¡¥ó¬O¤@­Ó¸s¸s²Õ¦X®Ø¡A·í¥Î¤á½s¿è­×§ïªí¤¤¥Ø«e°O¿ý

ªº¤@­Ó«ü©wÄæ¦ì®É¡A¥i¥Hª½±µ¦b¸Ó³¡¥ó¤¤¿é¤JÄæ¦ì­È

¤]¥i¥H«ö¤@¤U¸Ó³¡¥ó±q¤U©Ô¦¡¦C¥Ü¤è¶ô¤¤¿ï¾Ü¤@­ÓÄæ¦ì­È

¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X

TDBCheck ¥Î©óÅã¥Ü¸ê®Æ®w¤¤ªºÄæ¦ì¸ê°TªºÀˬd®Ø¡A·íªí¤¤Äæ¦ì

ªº­È»P¸ÓÀˬd®ØªºValueCheckedÄݩʭȬۤǰt®É¡A¸Ó

Àˬd®Ø³Q¿ï¤¤

¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X

TDBReadioGroup ¨Ï¥Î¸Ó³¡¥ó¥i¥H¬°¥Î¤á´£¨Ñ¤@¸s¸s²Õ¿ï¾Ü¶µ¡A¦ý¥Î¤á¥u¯à

±q¤¤¿ï¾Ü¤@­Ó¥i¿ï¶µ

¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X

TDBLookapList ·í¥Î¤á­n½s¿è­×§ï¸ê®Æ®wªí¥Ø«e°O¿ýªº«ü©wÄæ¦ì®É¡A

¨Ï¥Î¸Ó³¡¥ó´£¨Ñ¦h­Ó¥i¿ï¶µ¡A³o¦h­Ó¥i¿ï¶µ¬O±q¬ÛÃö

ªº¨ä¥Lªí¤¤Åª¨úªº¡A¥B¥H¦C¥Ü¤è¶ôªº§Î¦¡´£¨Ñµ¹¥Î¤á

¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X

TDBLookupCombo ¸Ó³¡¥óµ²¦X¤FTDBEdit³¡¥ó©MTDBComboBox³¡¥óªº¥\¯à¡A

¥Î¤á¥i¥Hª½±µ¦V¸Ó³¡¥ó¤¤¿é¤JÄæ¦ì­È¡A¤]¥i¥H±q¤U©Ô

¦¡¦C¥Ü¤è¶ô¤¤¿ï¾Ü¤@­Ó¥i¿ï¶µ¡A¥u¬O¤U©Ô¦¡¦C¥Ü¤è¶ô¤¤ªº

¥i¿ï¶µ¬O±q¬ÛÃöªº¨ä¥Lªº¸ê®Æ®wªí¤¤Åª¨ú¨Óªº¡C

¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w

¡@

16.1 ¼Æ¾ÚÂsÄý³¡¥óªº°ò¥»¯S©Ê

¡@

¤j¦h¼Æªº¼Æ¾ÚÂsÄý³¡¥ó¬O±q¼Ð·Ç³¡¥ó¤¤ºtÅܹL¨Óªº¡A¥¦­Ì¨ã¦³¤@¨Ç¬Û¦üªº¯S©Ê¡A¦pTDBGrid³¡¥ó©MTStringGrid³¡¥ó¡ATDBEdit©MTEdit³¡¥ó¡ATDBListBox©MTListBoxµ¥µ¥¡A¥u¬O¼Æ¾ÚÂsÄý³¡¥ó¬O±Mªù¥Î©óÅã¥Ü©M½s¿è¸ê®Æ®w¤¤°O¿ýªºÄæ¦ì¸ê°T¦Ó¤w¡C¥¦­Ìªº¨Ï¥Î¤èªk¥H¤ÎÄݩʦ³«Ü¤jªº¤£¦P¡C¦bµ{¦¡³]­p¶¥¬q¡A·í¼Æ¾ÚÂsÄý³¡¥ó³q¹LTDatasource³¡¥ó©MTTable³¡¥ó³s±µ¨ì¤@­Óª«²z¸ê®Æ®w®É¡A«K¥i¦b¨ä¤¤Æ[¬Ý¨ì¸ê®Æ®w¤¤ªº¼Æ¾Ú¸ê°T¡A¤]´N¬O»¡¦bµ{¦¡³]­p¶¥¬q«K¥i¥H¬Ý¨ìÀ³¥Îµ{¦¡°õ¦æ¤§«áªº®ÄªG¡A³oºØ¯S©Êµ¹§Ú­Ì­×§ïÀ³¥Îµ{¦¡±a¨Ó¤F¤è«K¡C

¼Æ¾ÚÂsÄý³¡¥ó¬O³q¹LTDatasource³¡¥ó³s±µ¨ìTTable³¡¥ó¤¤¨ãÅ骺Äæ¦ì³¡¥óªº¡A¦]¦Ó¼Æ¾Ú±±¨î³¡¥ó¨ã¦³¤@¨Ç¦@¦PªºÄÝ©Ê¡A¥Î©ó³s±µTDatasource³¡¥ó©MTField³¡¥ó¡C

DatasourceÄÝ©Ê¡G±Ô­z¼Æ¾ÚÂsÄý³¡¥ó³s±µªº¼Æ¾Ú·½³¡¥óTDatasource¡A¼Æ¾ÚÂsÄý³¡¥ó¬O±qTDatasource³¡¥ó¤¤Àò¨ú¼Æ¾Úªº¡C

DataFieldÄÝ©Ê¡G±Ô­z¼Æ¾ÚÂsÄý³¡¥ó¹ïÀ³¸ê®Æ®wªí¤¤¹ê»ÚªºÄæ¦ì¼Ðñ¡C¸ÓÄݩʪº­È¨ä¹ê¬OTDataSource³s±µªº¼Æ¾Ú¶°³¡¥óTTable©ÎTQuery³¡¥ó¤¤ªºÄæ¦ì³¡¥óªº¦W¦r¡C

¦]¦¹­n«Ø¥ß¤@­ÓÀ³¥Îµ{¦¡Åã¥Ü©M½s¿è¸ê®Æ®wªí¤¤ªº°O¿ý¡A¤@¯ë­n¦bÀ³¥Îµ¡Å餤©ñ¸m¤@­Ó¼Æ¾Ú¶°³¡¥ó(TTable³¡¥ó©ÎTQuery³¡¥ó)©M¦Ü¤Ö¤@­Ó¼Æ¾Ú·½³¡¥óTDataSource³¡¥ó¥H¤Î¦h­Ó¼Æ¾ÚÂsÄý³¡¥ó¡C¨ä«Ø¥ßªº¤@¯ë¨BÆJ¦p¤U¡G

¡@

1.¦bµ¡Å餤©ñ¸m¤W­z©Ò»¡ªº³¡¥ó¨Ã³s±µ¼Æ¾Ú¶°³¡¥ó¡B¼Æ¾Ú·½³¡¥ó¡C

2.¬°¦U¼Æ¾ÚÂsÄý³¡¥ó³]©wDataSourceÄݩʭȬ°µ¡¥ð¤¤¦s¦bªºTDataSource³¡¥óªº¦W¦r¡C

3.³]©w¦U¼Æ¾ÚÂsÄý³¡¥óªºDataFieldÄݩʬ°¼Æ¾Ú¶°³¡¥óTTable©ÎTQuery³¡¥ó¤¤¦s¦bªº Äæ¦ì³¡¥óªº¦W¦r¡C

¡@

¦b³oùػݭnª`·Nªº¬O¡GTDBGrid³¡¥ó©MTDBNavigator³¡¥ó¬O¦Û°Ê¦a¦s¨ú¼Æ¾Ú¶°³¡¥ó¤¤©Ò¦³¥i¥H¦s¨úªºÄæ¦ì³¡¥óªº¡A¦]¦¹¥¦­Ì¬O¨S¦³DataFieldÄݩʪº¡A¹ï©ó³o¨Ç³¡¥ó¥i¥H¸õ¹L²Ä3¨B¡C

EnabledÄÝ©Ê¡G·í¼Æ¾ÚÂsÄý³¡¥ó³s±µ¨ì¼Æ¾Ú¶°³¡¥ó®É¡A¥¦ªºEnabledÄݩʨM©w¤F¼Æ¾ÚÂsÄý³¡¥ó¯à§_±µ¨ü¨Ó¦Û·Æ¹«¡BÁä½L©M©w®É¾¹¨Æ¥óªº°T®§¡C·íEnabledÄݩʭȬ°False®É¡A¼Æ¾ÚÂsÄý³¡¥ó±NÅܬ°µL®Ä¦Ó¤£¯à±µ¨ü¥~¬Éªº¸ê°T¡C·í»P¼Æ¾ÚÂsÄý³¡¥ó¬Û³sªºTDataSource³¡¥óªºEnabledÄݩʬ°False®É©Î»P¼Æ¾Ú·½³¡¥óTDataSource³¡¥ó¬Û³sªº¼Æ¾Ú¶°³¡¥óTTable©ÎTQuery³¡¥óªºActiveÄݩʬ°False®É¡A¼Æ¾ÚÂsÄý³¡¥ó¤]·|ÀH¤§¦ÓÅܬ°µL®Ä¡C

ReadOnlyÄÝ©Ê¡G¤j¦h¼Æªº¼Æ¾ÚÂsÄý³¡¥ó¯à°÷¥Î¨Ó½s¿è­×§ï»P¤§¹ïÀ³ªºÄæ¦ì¡A¦]¦Ó¦³ReadOnlyÄÝ©Ê¡A¸ÓÄݩʥΨӱ±¨î¬O§_¥i¥H¦b¼Æ¾ÚÂsÄý¤¤½s¿è­×§ïÄæ¦ìªº­È¡C¯Ê¬Ù±¡ªp¤U¡A¸ÓÄݩʪº­È¬°False¡A¤]´N¬O»¡¥Î¤á¥i¥H¦b¨ä¤¤½s¿è­×§ïÄæ¦ìªº­È¡C

·íµM¥Î¤á­n·Q³q¹L¼Æ¾ÚÂsÄý³¡¥ó½s¿è­×§ï¸ê®Æ®wªí¤¤ªº°O¿ýÄæ¦ì®É¡AÁÙ­n¨ü¨ì¨ä¥¦¦]¯Àªº¨î¬ù¡C°£¤F¼Æ¾ÚÂsÄý³¡¥ó¥»¨­ªºReadOnlyÄݩʳ]©w¬°False¥~¡AÁÙ­n³]©w¨ä¬ÛÀ³ªºÄæ¦ì³¡¥ó©M¼Æ¾Ú¶°³¡¥óªºCanModifyÄÝ©ÊTrue©Ê¡F³]©wTDataSource³¡¥óªºAutoEditÄݩʬ°True¡A¦pªG¸ê®Æ®wªí¬OSQL¸ê®Æ®w¦øªA¾¹¤¤ªº¸ê®Æ®wªí¡A¥Î¤á¥²¶·­n¨ã¦³Åª¼g¸ê®Æ®wªºÅv­­µ¥¡C·íµM¦b¹ê»Úªºµ{¦¡³]­p¹Lµ{¤¤¨Ã¨S¦³³o¼ËÁcº¾¡A¦]¬°«Ü¦hÄݩʪº¯Ê¬Ù­È³£¬O¤¹³\¥Î¤á­×§ïªí¤¤ªº°O¿ýªº¡C

°£¤FTDBGrid³¡¥ó¤§¥~¡A¦pªG³q¹L¤@­Ó¼Æ¾ÚÂsÄý³¡¥ó­×§ïÄæ¦ì­È¡A¨º»ò·í¹C¼Ð(©ÎµJÂI)Â÷¶}¼Æ¾ÚÂsÄý³¡¥ó®É¡A¼Æ¾ÚÂsÄý³¡¥ó¤¤³Q­×§ïªº­È´N·|¦Û°Ê¦a³Q¼g¦^¨ìºÏºÐ¸ê®Æ®w¤¤¡C­Y¦bµJÂI¨S¦³Â÷¶}¼Æ¾ÚÂsÄý³¡¥ó¤§«e¡A«öESCÁä¡A¨º»òDelphi·|¦Û°Ê¦a©ñ±ó¨ä¹ïÄæ¦ì­Èªº­×§ï¡C¦bTDBGrid³¡¥ó¤¤­×§ïªí¤¤ªº°O¿ý®É¡A¥u¦³·íµJÂIÂ÷¶}¥Ø«eªº°O¿ý®É¡A§Y°O¿ý«ü¼Ð²¾¨ì¨ä¥L°O¿ý¤W®É¡A¥Î¤á¹ï¥Ø«e°O¿ýªº­×§ï·|³Q¼g¦^ºÏºÐ¤Wªº¸ê®Æ®wªí¡A¦bµJÂI¨S¦³Â÷¶}¥Ø«e°O¿ý®É¡A«öESCÁä¡ADelphi·|¦Û°Ê©ñ±ó¹ï¥Ø«e°O¿ýªº­×§ï¡C¡@

16.2 ¨Ï¥ÎTDBText³¡¥óÅã¥Üªí¤¤ªº¼Æ¾Ú¡@

TDBText³¡¥ó¬O¤@­Ó°ßŪªº¼Æ¾ÚÂsÄý³¡¥ó¡A¥¦Ãþ¦ü©óTLabel³¡¥ó¡C¥u¬OTDBText ³¡¥ó¥Î©óÅã¥Ü¸ê®Æ®wªí¤¤°O¿ýªº«ü©wÄæ¦ìªº­È¡C¦]¬°TDBText³¡¥óÅã¥Üªº¬Oªí¤¤¥Ø«e°O¿ýªº«ü©wªºÄæ¦ìªº­È¡A¦]¦Ó¥¦Åã¥Üªº¤º®e¤]¬O°ÊºAªº¡A¦b¨ä¤¤Åã¥Üªº¤º®eÀHµÛ°O¿ý«ü¼Ðªº²¾°Ê¦ÓÅܤơC¥ÎTDBText³¡¥óÅã¥ÜCustomer.DBªí¤¤ªºCompanyÄæ¦ì¸ê°T®É¥i¥Î¦p¹Ï16.2©Ò¥Üªºµ¡Åé¨Ó¹ê²{¡C¡@¡@

¨ä¤¤¦U³¡¥óªºÄݩʳ]©w¦pªí16.2©Ò¥Ü¡@

ªí16.2 ªí¤¤¦U³¡¥óªºÄݩʳ]©w

¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w

ÄÝ ©Ê ÄÝ ©Ê ­È

¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X

Table1.DatabaseName DEMOS

Table1.TableName Customer.DB

Datasource1.DataSet Table1

DBText.DataSource DataSource1

DBText.DBField Company

¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¡@

16.3 ¨Ï¥ÎTDBEdit³¡¥óÅã¥Ü©M½s¿èªí¤¤ªº¼Æ¾Ú¡@

TDBEdit³¡¥ó¬O±Mªù¥Î©óÅã¥Ü½s¿è¸ê®Æ®wªí¤¤¥Ø«e°O¿ýªº¦U­ÓÄæ¦ì­Èªº¼Æ¾ÚÂsÄý³¡¥ó¡A¦bÀ³¥Îµ{¦¡¤¤¡A§Ú­Ì±`±`¥Î¤@­ÓTDBEdit³¡¥ó¨Ó¹ïÀ³ªí¤¤¤@­ÓÄæ¦ì¡A³q¹L³]©wTDBEdit³¡¥óªºDataSource¡BDataFieldÄÝ©Ê«K¥i¥H¬°TDBEdit³¡¥ó«ü©wªí¤¤¬ÛÀ³ªºÄæ¦ì¡C¦pªG¥Î¤á§Æ±æ¯à³q¹LTDBEdit³¡¥ó½s¿è­×§ï¸ê®Æ®wªí¤¤ªºÄæ¦ì­È¡AÁÙ­n³]©wTDBEdit³¡¥óªºReadOnlyÄݩʬ°False¡A³]©w»PTDBEdit¬Û³sªº¼Æ¾Ú·½³¡¥óTdataSource³¡¥óªºAutoEditÄݩʬ°True¥H¤Î½T«O»PTDataSource³¡¥ó¬Û³sªº¼Æ¾Ú¶°³¡¥óTTable©ÎTQuery³¡¥ó³B©ó½s¿èª¬ºA¡A§Y³]©w¥¦­ÌªºCanModifyÄݩʬ°True¡C

¨Ò¦p¡A¦b¹Ï16.3©Ò¥Üªºµ¡Å餤¡A¨Ï¥Î¦h­ÓTDBEdit³¡¥óÅã¥Ü©M½s¿èCustomer.DBªí¤¤¥Ø«e°O¿ýªº¦U­ÓÄæ¦ì¡Cµ¡Å餤¦U³¡¥óªºÄݩʦpªí16.3©Ò¥Ü¡C¡@

¹Ï16.3 ¥ÎTDBEdit³¡¥óÅã¥Ü©M½s¿èªí¤¤ªº¼Æ¾Ú¡@

ªí16.3 µ¡Å餤¦U³¡¥óªºÄÝ©Ê

¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w

ÄÝ ©Ê ÄÝ ©Ê ­È

¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X

Table1.DatabaseName DEMOS

Table1.TableName Customer.DB

Datasource.DataSet Table1

DataSource.AutoEdit True

DBNavigator.DataSource DataSource1

¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¡@

µ¡Å餤¨ä¥¦³¡¥ó³£¬OTLabel³¡¥ó©MTDBEdit³¡¥ó¡ATLabel³¡¥ó¥Î©óÅã¥Üªí¤¤¦UÄæ¦ìªº¦W¦r¡ATDBEdit³¡¥ó¹ïÀ³ªí¤¤¦U­ÓÄæ¦ì¡Cµ{¦¡°õ¦æ¤§«á¦p¹Ï16.4©Ò¥Ü¡C¥Î¤á¥i¥H¦b¨ä¤¤¥ô¦ó¤@­ÓTDBEdit³¡¥ó¤¤­×§ï¨ä¤¤ªºÄæ¦ì­È¡C¡@

¥ÎTDBEdit³¡¥óÅã¥Ü©M­×§ïªí¤¤ªº¼Æ¾Ú¡@

µ¡Å餤Á٨ϥΤF¤@­ÓTDBNavigator³¡¥ó¡A¨Ï¥Î¥¦ªº¥Øªº¬O¦bªí¤¤²¾°Ê°O¿ý«ü¼Ð¡AÁÙ¥i¥H¶i¦æ­×§ï¡B´¡¤J¡B¸Ñ°£°O¿ýµ¥¾Þ§@¡A¨ãÅ骺¨Ï¥Î©M¾Þ§@°Ñ¬Ý 16.5 TDBNaigator³¡¥óªº¨Ï¥Î¤@¸`¡C¡@

16.4 ¥ÎTDBGrid³¡¥óÅã¥Ü©M½s¿èªí¤¤ªº¼Æ¾Ú¡@

TDBGrid³¡¥ó©MTDBEdit³¡¥ó¤@¼Ë¡A¥¦­Ì¬O±Mªù¥Î¨ÓÅã¥Ü©M½s¿è¸ê®Æ®wªí¤¤ªº¼Æ¾Úªº¡A¦ýTDBGrid³¡¥óªº¥\¯à§ó±j¤j¤@¨Ç¡A¥¦¥i¥H¥Hºô®æªº§Î¦¡Åã¥Ü¸ê®Æ®wªí¤¤¥þ³¡°O¿ýªº©Ò¦³Äæ¦ì¸ê°T¡C¡@

¥ÎTDBGridÅã¥Ü¸ê®Æ®wªí¤¤ªº°O¿ý¸ê°T¡@


«á¤@­¶
«e¤@­¶
¦^¥Ø¿ý
¦^­º­¶