thisform.text1.Value=\ thisform.text2.Value=\ thisform.text3.Value=\ thisform.text4.value=\ thisform.text1.SetFocus ELSE
MESSAGEBOX(\ÃÜÂë²»ÕýÈ·»òÁ½´ÎÊäÈëÃÜÂë²»Ò»ÖÂ,ÇëÖØÐÂÊäÈë\ϵͳÌáʾ\ thisform.text2.Value=\ thisform.text3.Value=\ thisform.text2.SetFocus ENDIF ELSE
MESSAGEBOX(\Óû§Ãû\²»´æÔÚ,ÇëÈ·ÈÏÖØÐÂÊäÈë\ϵͳÌáʾ\ thisform.text1.setfocus thisform.text1.SelStart=0
thisform.text1.SelLength=LEN(ALLTRIM(thisform.text1.Value)) thisform.text2.Value=\ thisform.text3.Value=\ ENDIF ENDIF
Í˳öÖÐдÈ룺thisform.release
1. ÔÚ¸ø¶¨¡°Ñ§Éú.DBF¡±±íÎļþÖаüº¬ÓС°Ñ§ºÅ¡±¡¢¡°ÐÕÃû¡±×ֶΣ¬¶ÔѧºÅ±àÖÆÒ»¸ö³é½±±íµ¥¡£ÒªÇ󣬲»ÄÜÓÐÖظ´Öн±Ñ§Éú¡£³ÌÐòÔËÐÐʱ£¬×ÖºÅÔÚÎı¾¿òÖÐÏÔʾ£¬ÓñêÇ©ÏÔʾÖн±Ñ§ÉúµÄѧºÅ¡¢ÐÕÃû¡£Ó¦ÓС°¿ªÊ¼¡±¡¢¡°³éÈ¡¡±¡¢¡°Í˳ö¡±¿Ø¼þ¡£½¨Òé±íµ¥£¨Form1£©°üÀ¨µÄ¿Ø¼þÊÇ£ºÒ»¸öÎı¾¿ò£¨Text1£©¡¢Á½¸ö±êÇ©£¨Label1¡¢Label2£©¡¢Èý¸ö°´Å¥£¨Command1¡¢Command2¡¢Command3£©ºÍÒ»¸ö¼ÆʱÆ÷£¨Timer1£©¡£
µ¥»÷¡°Ñ¡ÖС±½çÃæ ±íµ¥Éè¼Æ½çÃæ
Çë±àд£º
£¨1£© ±íµ¥Form1µÄInitʼþ´úÂ룺
this.text1.value=\ѧÉúѧºÅ\ &&Îı¾¿òÏÔʾ³õÖµ¡°Ñ§ÉúѧºÅ¡± this.label2.visible=.f. &&±êÇ©label2²»¿É¼û this.timer1.enabled=.f. &&¼ÆʱÆ÷timer1²»¿ÉÓÃ
this.timer1.interval=10 &&¼ÆʱÆ÷ʱ¼ä¼ä¸ôΪ10/1000Ã루¼´0.01Ã룩
13
£¨2£© ¡°¿ªÊ¼¡±°´Å¥Command1µÄClickʼþ´úÂ룺
set delete on &&Òþ²ØÒѼÓÈëɾ³ý±ê¼ÇµÄ¼Ç¼ thisform.timer1.enabled=.t. &&ʹ¼ÆʱÆ÷¿ÉÓà thisform.label2.visible=.f. &&±êÇ©label2²»¿É¼û
£¨3£© ¡°Ñ¡ÖС±°´Å¥Command2µÄClickʼþ´úÂ룺
thisform.timer1.enabled=.f.
thisform.label2.caption=\Öн±Ñ§ÉúÊÇ£ºÑ§ºÅ \ ÐÕÃû\ÐÕÃû thisform.label2.visible=.t. delete
£¨4£© ¡°Í˳ö¡±°´Å¥Command3µÄClickʼþ´úÂ룺 recall all &&»Ö¸´ÒÑ×öɾ³ý±ê¼ÇµÄËùÓмǼ thisform.release
£¨5£© ¼ÆʱÆ÷£¨Timer1£©µÄTimerʼþ´úÂ룺 if !eof() &&Èç¹û²»µ½¼Ç¼β
skip &&Ìøµ½ÏÂÒ»¼Ç¼£¬ÆµÂÊÓÉTimerÖµ¾ö¶¨¡£ Else &&Èç¹ûÒѵ½¼Ç¼β go top &&Ìøµ½µÚÒ»Ìõ¼Ç¼ endif
thisform.text1.value=alltrim(ѧºÅ) &&ÏÔʾѧÉúµÄѧºÅ thisform.refresh
1. ±à³ÌʵÏÖѧÉúÍËѧµÄ¹¦ÄÜ¡£Ñ§ÉúÍËѧʱ²»µ«ÒªÉ¾³ýXsda.dbfÖеļǼ£¬¶øÇÒҪɾ³ýXscj.dbfºÍXsxk.dbfÖеļǼ¡£
SET TALK OFF SET SAFETY OFF
SET EXCLUSIVE ON &&¶ÀÕ¼´ò¿ªÊý¾Ý±í SELECT 1 USE Xsda SELECT 2 USE Xscj SELECT 3 USE Xsxk SELECT 1 DO WHILE .T. CLEAR
ACCEPT \ÊäÈëѧºÅ£º\
14
SELECT 1
______ IF FOUND() DELETE SELECT 2
DELETE FOR ѧºÅ=MXH SELECT 3 ______ ELSE
MESSAGEBOX(\ÎÞ´ËѧºÅ£¡\ ENDIF
WAIT \¼ÌÐø·ñ£¿£¨Y/N£©\ IF UPPER(T)= \ EXIT ENDIF ENDDO SELECT 1 PACK SELECT 2 PACK SELECT 3 PACK
CLOSE ALL SET TALK ON
15