¡¶VFP6.0³ÌÐòÉè¼Æ¡·
ʵÑéÖ¸µ¼
µÚÒ»²¿·Ö Visual FoxPro 6.0µÄ»ù±¾²Ù×÷
1¡¢½¨Á¢¸öÈËÎļþ¼Ð£ºÔÚWindows»·¾³Ï£¬Ñ¡Ôñ×îºóÒ»¸ö´ÅÅÌÇý¶¯Æ÷£¬ÔÚÆäÖе¥»÷ÓÒ¼ü£¬Ñ¡Ôñ¡°Ð½¨¡±ÃüÁѡÔñ¡°Îļþ¼Ð¡±£¬ÊäÈë¸öÈ˵ÄÎļþ¼ÐÃû¡£ 2¡¢VFPµÄÆô¶¯¡¢Í˳öÓë²Ù×÷½çÃæ
£¨1£©Æô¶¯VFP£ºÔÚWindows»·¾³Ï£¬µ¥»÷¡°¿ªÊ¼¡±²Ëµ¥£¬Ñ¡Ôñ¡°³ÌÐò¡±£¬³öÏÖ¼¶Áª²Ëµ¥£¬ÔÚϼ¶¼¶Áª²Ëµ¥ÖÐÑ¡Ôñ¡°Visual FoxPro 6.0¡±£¬½øÈëVisual FoxPro 6.0µÄ¹¤×÷½çÃæ¡£
Æô¶¯Visual FoxProºó£¬ÏµÍ³ÏÔʾVisual FoxProµÄ¹¤×÷»·¾³£¬ÈçÉÏͼËùʾ¡£Visual FoxProµÄ¹¤×÷»·¾³°üÀ¨ÒÔϼ¸¸ö²¿·Ö£º ? ±êÌâÀ¸¡£ ? ²Ëµ¥À¸¡£ÓÐ8¸öϵͳ²Ëµ¥¹¹³É£¬Ã¿¸öÏÂÀ²Ëµ¥°üÀ¨Ò»×é²Ëµ¥ÃüÁÍê³É´ó²¿·Ö²Ù×÷¡£ ? ¹¤¾ßÀ¸¡£ÓÉһϵÁеİ´Å¥¹¹³É£¬Ã¿¸ö°´Å¥Ö´ÐеIJÙ×÷¶ÔÓ¦ÓÚij¸ö²Ëµ¥ÃüÁî¡£ ? Ö÷´°¿Ú¡£¹¤¾ßÀ¸ÏÂÃæµÄ¿Õ°×ÇøÓò£¬ÓÃÓÚÏÔʾÃüÁîµÄ½á¹û¡£ ? ÃüÁî´°¿Ú¡£ÊäÈë¡¢Ö´Ðе¥¸öµÄÃüÁÿÌõÃüÁîÊäÈëÍê±Ï£¬´ò»Ø³µ¡£ ? ״̬À¸¡£ÏÔʾµ±Ç°²Ù×÷µÄ״̬¡£ £¨2£©Í˳öVFP£º ? ÔÚVisual FoxProµÄ¡°Îļþ¡±²Ëµ¥ÖÐÑ¡Ôñ¡°Í˳ö¡±¡£ ? ÔÚVisual FoxProµÄÃüÁî´°¿ÚÖÐÇÃÈëQUIT£¬´ò»Ø³µ¡£ ? µ¥»÷Visual FoxProϵͳ´°¿ÚÓÒÉϽǵġ°¹Ø±Õ¡±°´Å¥¡£ 3¡¢ÉèÖù¤×÷»·¾³
£¨1£©½øÈëVisual FoxPro¹¤×÷½çÃ棬ѡÔñ¡°¹¤¾ß¡±²Ëµ¥£¬Ñ¡Ôñ¡°Ñ¡ÏÃüÁÔÚ´ò¿ªµÄÑ¡Ïî¶Ô»°¿òÖÐÉèÖù¤×÷»·¾³¡£ ? ĬÈÏĿ¼µÄÉèÖãºÑ¡Ôñ¡°ÎļþλÖá±Ñ¡Ï£¬Ñ¡ÖС°Ä¬ÈÏĿ¼¡±£¬Ñ¡Ôñ¡°Ð޸ġ±°´
Å¥£¬³öÏÖ¡°¸ü¸ÄÎļþλÖᱶԻ°¿ò£¬ÔÚ¶Ô»°¿òÖÐÑ¡Öи´Ñ¡¿ò£¬¿ÉÔÚÎı¾¿òÖÐÖ±½ÓÊäÈëÎļþ·¾¶£¬È磺F:\\WL£¬Ò²¿É´ò¿ª°´Å¥ ¡¤ ¡¤ ¡¤ £¬Ñ¡ÔñÎļþ·¾¶¡£×¢Ò⣺ÿ´Î½øÈëVisual FoxPro£¬¶¼±ØÐëÉèÖÃĬÈÏĿ¼¡£
1
ÈÕÆÚ¸ñʽµÄÉèÖãºÔÚÃüÁî´°¿ÚÊäÈë? DATE(),´ò»Ø³µ£¬ÏÔʾÈÕÆÚ¸ñʽ¡£Èç¹ûÊDZê×¼¸ñʽ£¬Ôò²»ÓÃÉèÖã»Èç¹ûÊÇÑϸñµÄÈÕÆÚ¸ñʽ{^YYYY-MM-DD}£¬ÔòÊäÈëÃüÁî¡°SET STRICTDATE TO 0¡±£¬Ö´ÐУ¬È¡ÏûÑϸñ¸ñʽ¡£È»ºóÑ¡Ôñ¡°¹¤¾ß¡±²Ëµ¥£¬Ñ¡Ôñ¡°Ñ¡ÏÃüÁÔÚ´ò¿ªµÄÑ¡Ïî¶Ô»°¿òÖÐÑ¡Ôñ¡°ÇøÓò¡±Ñ¡Ï£¬ÔÚ¡°ÈÕÆÚ¸ñʽ¡±ÏÂÀÁбí¿òÖÐÑ¡Ôñ¡°ÃÀÓ±ê×¼¸ñʽ¡£ 4¡¢½¨Á¢ÏîÄ¿ ? Ñ¡Ôñ¡°Îļþ¡±²Ëµ¥£¬Ñ¡Ôñ¡°Ð½¨¡±ÃüÁÔÚн¨¶Ô»°¿òÖÐÉèÖÃÎļþÀàÐÍΪ¡°ÏîÄ¿¡±£¬
µ¥»÷¡°Ð½¨Îļþ¡±°´Å¥£¬´ò¿ª¡°´´½¨¡±¶Ô»°¿ò£¬ÔÚ¶Ô»°¿òÖÐÊäÈëÏîÄ¿ÎļþÃûXSGL¡¤PJX£¬µ¥»÷¡°±£´æ¡±°´Å¥£¬´ò¿ªÏîÄ¿XSGLµÄÏîÄ¿¹ÜÀíÆ÷¡£ ? ÏîÄ¿¹ÜÀíÆ÷Öаüº¬Áù¸öÑ¡Ï£¬ÊÇÈ«²¿¡¢Êý¾Ý¡¢Îĵµ¡¢Àà¡¢´úÂë¡¢ÆäËûÑ¡Ï¡£
È«²¿Ñ¡Ï¡ª¡ª¹ÜÀíÒ»¸öÏîÄ¿ÖÐËùÓÐÀàÐ͵ÄÎļþ¡£
Êý¾ÝÑ¡Ï¡ª¡ª¹ÜÀíÊý¾Ý¿â¡¢×ÔÓÉ±í¡¢²éѯºÍÊÓͼÀàÊý¾Ý¡£ ÎĵµÑ¡Ï¡ª¡ª¹ÜÀí±íµ¥Îļþ¡¢±¨±íÎļþºÍ±êÇ©Îļþ¡£ ÀàÑ¡Ï¡ª¡ª¹ÜÀíÀà¿âÎļþ¡£ ´úÂëÑ¡Ï¡ª¡ª¹ÜÀí³ÌÐòÎļþ¡£
ÆäËûÑ¡Ï¡ª¡ª¹ÜÀí³ýÉÏÊöÎļþÒÔÍâµÄÎļþ£¬È磺²Ëµ¥Îļþ¡¢Îı¾Îļþ¡£ 5¡¢Í¨¹ýÏîÄ¿¹ÜÀíÆ÷½¨Á¢×ÔÓɱí ? ½¨Á¢±í£ºÑ¡Ôñ¡°Îļþ¡±²Ëµ¥£¬Ñ¡Ôñ¡°´ò¿ª¡±ÃüÁ´ò¿ªXSGLÏîÄ¿µÄÏîÄ¿¹ÜÀíÆ÷£¬
Ñ¡Ôñ¡°Êý¾Ý¡±Ñ¡Ï£¬Ñ¡ÖС°×ÔÓÉ±í¡±£¬µ¥»÷¡°Ð½¨¡±°´Å¥£¬ÔÚËæºó³öÏֵġ°Ð½¨±í¡±¶Ô»°¿òÖÐÑ¡Ôñ¡°Ð½¨±í¡±°´Å¥£¬ÔÚ¡°´´½¨¡±¶Ô»°¿òÖÐÊäÈë±íÎļþÃû¡°Ñ§Éú±í¡±£¬µ¥»÷¡°±£´æ¡±°´Å¥£¬´ò¿ª¡°±íÉè¼ÆÆ÷¡±£¬ÈçͼËùʾ£º
?
ÔÚ±íÉè¼ÆÆ÷ÖзֱðÊäÈë¸÷¸ö×ֶεÄÃû×Ö¡¢ÀàÐÍ¡¢¿í¶ÈÒÔ¼°Ð¡ÊýλÊý£¬ÊäÈëÍê±Ïºó£¬µ¥»÷¡°È·¶¨¡±°´Å¥£¬ÔÚËæºó³öÏֵĶԻ°¿òÖÐÑ¡Ôñ¡°Y¡±£¬ÔÚËæºó³öÏÖµÄÊý¾Ý±à¼´°¿ÚÖÐÊäÈë¼Ç¼£¬ÊäÈëÍê±Ïºó£¬¿ÉÓÃCtrl+W¡¢µ¥»÷¡°¹Ø±Õ¡±°´Å¥¡¢Ë«»÷¿ØÖƲ˵¥Í¼±êµÈ·½·¨´æÅÌ¡£ ? Ð޸ıí½á¹¹¡¢²é¿´±í£ºÔÚÏîÄ¿¹ÜÀíÆ÷ÖУ¬Ñ¡Ôñ¡°×ÔÓÉ±í¡±£¬µã¿ªÇ°ÃæµÄ+£¬Ñ¡ÖÐѧ
Éú±í£¬µ¥»÷Óұߵġ°Ð޸ġ±°´Å¥£¬¿ÉÒÔÐ޸ıíµÄ½á¹¹£¬ÈçÔö¼Ó¡¢Ð޸ġ¢É¾³ý×ֶΣ»µ¥»÷¡°ä¯ÀÀ¡±°´Å¥£¬¿É²é¿´¡¢Ð޸ıíÖеļǼ£¬´Ëʱ£¬Èç¹ûÒªÔö¼Ó¼Ç¼£¬´ò¿ª²Ëµ¥À¸Öеġ°±í¡±²Ëµ¥£¬Ñ¡Ôñ¡°×·¼ÓмǼ¡±ÃüÁ¾Í¿É×·¼ÓмǼ¡£
2
6¡¢ÃüÁʽ½¨Á¢×ÔÓɱí
ÔÚÃüÁî´°¿ÚÖÐÊäÈëÃüÁCREATE <±íÎļþÃû>£¬´ò»Ø³µ£¬³öÏÖ¡°´´½¨¡±¶Ô»°¿ò£¬ÔÚ¡°´´½¨¡±¶Ô»°¿òÖÐÊäÈë±íÎļþÃû¡°Ñ§Éú±í¡±£¬µ¥»÷¡°±£´æ¡±°´Å¥£¬´ò¿ª¡°±íÉè¼ÆÆ÷¡±¡£ 7¡¢²Ëµ¥·½Ê½½¨Á¢×ÔÓɱí
µ¥»÷¡°Îļþ¡±²Ëµ¥µÄ¡°Ð½¨¡±Ï½øÈ롰н¨¡±´°¿Ú£¬Ñ¡Ôñ¡°±í¡±Ñ¡Ïµ¥»÷¡°Ð½¨Îļþ¡±°´Å¥£¬´ò¿ª¡°Ð½¨Îļþ¡±¶Ô»°¿ò£¬ÊäÈë±íÃû£¬µ¥»÷¡°±£´æ¡±°´Å¥£¬´ò¿ª¡°±íÉè¼ÆÆ÷¡±¡£ 8¡¢±íµÄ´ò¿ª ? ÏîÄ¿¹ÜÀíÆ÷·½Ê½£º´ò¿ªXSGLÏîÄ¿µÄÏîÄ¿¹ÜÀíÆ÷£¬Ñ¡Ôñ¡°Êý¾Ý¡±Ñ¡Ï£¬Ñ¡ÖС°×Ô
ÓÉ±í¡±£¬µã¿ªÇ°ÃæµÄ+£¬Ñ¡ÖÐѧÉú±í¡£ ? ÃüÁʽ£ºÔÚÃüÁî´°¿ÚÖÐÊäÈëÃüÁUSE ±íÎļþÃû£¬ ´ò¿ª×ÔÓÉ±í¡£ ? ²Ëµ¥·½Ê½£ºÔÚ¡°Îļþ¡±²Ëµ¥ÖÐÑ¡Ôñ¡°´ò¿ª¡±ÃüÁ³öÏÖ¡°´ò¿ª¡±¶Ô»°¿ò£¬ÔÚ¡°Îļþ
ÀàÐÍ¡±ÏÂÀÁбí¿òÖÐÑ¡Ôñ¡°±í¡±Ñ¡ÏÔÚ¡°ÎļþÃû¡±Îı¾¿òÖÐÊäÈë±íÎļþÃû¡£ 9¡¢ÃüÁʽ²é¿´¡¢Ð޸ļǼ ? ÔÚÃüÁî´°¿ÚÖÐÊäÈëÃüÁBROWSE£¬´ò»Ø³µ£¬³öÏÖÊý¾Ýä¯ÀÀ´°¿Ú£¬¿ÉÒԲ鿴¡¢ÐÞ
¸Ä¼Ç¼¡£ ? ÔÚÃüÁî´°¿ÚÖÐÊäÈëÃüÁDISP ALL £¬´ò»Ø³µ£¬ÔÚÖ÷´°¿ÚÖÐÏÔʾȫ²¿¼Ç¼¡£ 10¡¢ÃüÁʽÌí¼Ó¡¢²åÈ롢ɾ³ý¼Ç¼ ? ÔÚÃüÁî´°¿ÚÖÐÊäÈëÃüÁAPPEND£¬´ò»Ø³µ£¬³öÏÖÒ»¸ö±à¼´°¿Ú£¬ÊäÈëмǼ¡£ ? ÔÚÃüÁî´°¿ÚÖÐÊäÈëÃüÁINSERT [BLANK]£¬´ò»Ø³µ£¬¿ÉÔÚµ±Ç°¼Ç¼ºóÃæ²åÈë¼Ç¼¡£ ? ÔÚÃüÁî´°¿ÚÖÐÊäÈëÃüÁDELETEÃüÁ´ò»Ø³µ£¬¿ÉÒÔ°´Ìõ¼þɾ³ý¼Ç¼¡£ 11¡¢¹Ø±Õ×ÔÓɱí
ÔÚÃüÁî´°¿ÚÖÐÊäÈëÃüÁUSE 12¡¢½¨Á¢Êý¾Ý¿â ? ÃüÁʽ£ºCREATE DATABASE <Êý¾Ý¿âÃû>£¬³öÏÖÊý¾Ý¿âÉè¼ÆÆ÷´°¿Ú¡£ ? ²Ëµ¥·½Ê½£ºµ¥»÷¡°Îļþ¡±²Ëµ¥µÄ¡°Ð½¨¡±ÃüÁ½øÈ롰н¨¡±´°¿Ú£¬Ñ¡Ôñ¡°Êý¾Ý¿â¡±
Ñ¡Ïµ¥»÷¡°Ð½¨Îļþ¡±°´Å¥£¬³öÏÖ¡°´´½¨¡±¶Ô»°¿ò£¬ÊäÈëÊý¾Ý¿âÃû£¬µ¥»÷¡°±£´æ¡±°´Å¥£¬³öÏÖÊý¾Ý¿âÉè¼ÆÆ÷´°¿Ú¡£ ? ÏîÄ¿¹ÜÀíÆ÷·½Ê½£º´ò¿ªXSGLÏîÄ¿µÄÏîÄ¿¹ÜÀíÆ÷£¬Ñ¡Ôñ¡°Êý¾Ý¡±Ñ¡Ï£¬Ñ¡ÖС°Êý
¾Ý¿â¡±£¬µ¥»÷ÓÒ²àµÄ¡°Ð½¨¡±°´Å¥£¬Ñ¡Ôñ¡°Ð½¨Êý¾Ý¿â¡±£¬ÊäÈëÊý¾Ý¿âÃû£¬µ¥»÷¡°±£´æ¡±°´Å¥£¬³öÏÖÊý¾Ý¿âÉè¼ÆÆ÷´°¿Ú¡£ 13¡¢ÔÚÊý¾Ý¿âÖн¨Á¢¡¢Ìí¼Ó¡¢ÒÆÈ¥±í ? ½¨Á¢±í£º´ò¿ªXSGLÏîÄ¿µÄÏîÄ¿¹ÜÀíÆ÷£¬Ñ¡Ôñ¡°Êý¾Ý¡±Ñ¡Ï£¬Ñ¡¶¨ÏàÓ¦Êý¾Ý¿â
ÎļþµÄ¡°±í¡±Ñ¡Ïµ¥»÷¡°Ð½¨¡±°´Å¥£¬½øÈ롰н¨¡±±í´°¿Ú£¬µ¥»÷¡°Ð½¨±í¡±°´Å¥£¬´ò¿ª±íÉè¼ÆÆ÷¡£ ? Ìí¼Ó±í£º´ò¿ªXSGLÏîÄ¿µÄÏîÄ¿¹ÜÀíÆ÷£¬Ñ¡Ôñ¡°Êý¾Ý¡±Ñ¡Ï£¬Ñ¡¶¨ÏàÓ¦Êý¾Ý¿â
ÎļþµÄ¡°±í¡±Ñ¡Ïµ¥»÷¡°Ìí¼Ó¡±°´Å¥£¬½øÈë¡°´ò¿ª¡±´°¿Ú£¬Ñ¡ÔñÒªÌí¼ÓµÄ±í£¬µ¥»÷¡°È·¶¨¡±°´Å¥£¬ËùÑ¡¶¨µÄ±í¾Í±»Ìí¼Óµ½´ò¿ªµÄÊý¾Ý¿âÖÐÁË¡£ ? ÒÆÈ¥±í£ºÔÚÏîÄ¿¹ÜÀíÆ÷ÖУ¬Ñ¡¶¨ÐèÒªÒÆÈ¥µÄÊý¾Ý¿â±íÎļþ£¬µ¥»÷¡°ÒÆÈ¥¡±°´Å¥£¬ÔÚ
3
Ëæºó³öÏֵĴ°¿ÚÖÐÑ¡Ôñ¡°ÒÆÈ¥¡±°´Å¥¼´¿É¡£ 14¡¢½¨Á¢³ÌÐòÎļþ ? ²Ëµ¥·½Ê½£ºµ¥»÷¡°Îļþ¡±²Ëµ¥Öеġ°Ð½¨¡±Ñ¡Ïµ¯³ö¡°Ð½¨¡±¶Ô»°¿ò£¬Ñ¡Ôñ¡°³Ì
Ðò¡±Ñ¡Ï´ò¿ª¡°³ÌÐò±à¼¡±´°¿Ú£¬ÔÚ³ÌÐò±à¼´°¿ÚÖÐÊäÈë²¢±à¼³ÌÐò¡£ ? ÃüÁʽ£ºÔÚÃüÁî´°¿ÚÖÐÊäÈ룺MODIFY COMMAND <³ÌÐòÃû> 15¡¢Ö´ÐгÌÐòÎļþ ? ²Ëµ¥·½Ê½£ºµ¥»÷¡°³ÌÐò¡±²Ëµ¥Öеġ°ÔËÐС±Ñ¡ÏÏÔʾ¡°ÔËÐС±¶Ô»°¿ò£¬ÔÚ¡°Ö´ÐÐ
Îļþ¡±Îı¾¿òÖÐÊäÈë³ÌÐòÃû¡£ ? ÃüÁʽ£ºÔÚÃüÁî´°¿ÚÖÐÊäÈ룺 DO <³ÌÐòÃû> 16¡¢½¨Á¢±íµ¥ ? ʹÓÃ±íµ¥Ïòµ¼´´½¨±íµ¥£º´Ó¡°Îļþ¡±²Ëµ¥ÖÐÑ¡Ôñ¡°Ð½¨¡±Ñ¡ÏÔÚ¡°Ð½¨¡±¶Ô»°¿ò
ÖÐÑ¡Ôñ¡°Ïòµ¼¡±°´Å¥£¬³öÏÖ¡°Ïòµ¼Ñ¡È¡¡±¶Ô»°¿ò¡£Ñ¡Ôñ¡°±íµ¥Ïòµ¼¡±£¬µ¥»÷¡°È·¶¨¡±°´Å¥£¬½øÈë¡°±íµ¥Ïòµ¼¡±´°¿Ú¡£ÔÚ¡°Êý¾Ý¿âºÍ±í¡±ÏÂÀÁбíÖÐÑ¡È¡±í£¬Ë«»÷ËùÐèÒªµÄ¡°¿ÉÓÃ×ֶΡ±£¬Ñ¡¶¨µÄ×ֶγöÏÖÔÚ¡°Ñ¡¶¨×ֶΡ±ÖУ¬µ¥»÷¡°ÏÂÒ»²½¡±£¬½øÈë¡°±íµ¥Ïòµ¼¡±´°¿Ú¡£ÔÚ¡°±íµ¥Ïòµ¼¡±´°¿ÚÖУ¬Ñ¡ÔñÑùʽºÍ°´Å¥ÀàÐÍ£¬µ¥»÷¡°ÏÂÒ»²½¡±£¬½øÈëÏÂÒ»¸ö´°¿Ú¡£Ñ¡¶¨ÅÅÐòµÄ×ֶΣ¬µ¥»÷¡°ÏÂÒ»²½¡±£¬½øÈëÏÂÒ»¸ö´°¿Ú¡£¼üÈë±íµ¥µÄ±êÌ⣬µ¥»÷¡°Íê³É¡±°´Å¥£¬µ¥»÷¡°Ô¤ÀÀ¡±°´Å¥£¬³öÏÖ½á¹û¡£ ? ʹÓÃ±íµ¥Éè¼ÆÆ÷´´½¨±íµ¥£ºÔÚ¡°ÏîÄ¿¹ÜÀíÆ÷¡±´°¿ÚÖÐÑ¡Ôñ¡°Îĵµ¡±Ñ¡Ï£¬Ñ¡¶¨¡°±í
µ¥¡±Í¼±ê£¬Ñ¡Ôñ¡°Ð½¨¡±°´Å¥£¬³öÏÖ¡°±íµ¥Éè¼ÆÆ÷¡±´°¿Ú¡£ ? ʹÓá°¿ìËÙ±íµ¥¡±´´½¨±íµ¥£ºÆô¶¯±íµ¥Éè¼ÆÆ÷ºó£¬ÔÚ¡°±íµ¥¡±²Ëµ¥ÖÐÑ¡Ôñ¡°¿ìËÙ±í
µ¥¡±£¬Æô¶¯±íµ¥Éú³ÉÆ÷£¬ÈçͼËùʾ£º
µ¥»÷±íµ¥Éú³ÉÆ÷µÄ¡°×Ö¶ÎÑ¡È¡¡±Ñ¡ÏµÄ°´Å¥£¬Ñ¡ÔñѧÉú±í¡£½«¡°¿ÉÓÃ×ֶΡ±ÏÂÀÁбíÖеÄËùÓÐ×Ö¶ÎÌí¼Óµ½¡°Ñ¡¶¨×ֶΡ±ÏÂÀÁбíÖС£ÔÚ¡°Ñùʽ¡±Ñ¡ÏÖÐÑ¡Ôñ¡°¸¡µñ¡±Ñùʽ¡£µ¥»÷È·¶¨£¬´ËʱÔÚ±íµ¥Öд´½¨Á˺ÍѧÉú±íµÄËùÓÐ×ֶΰ󶨵Ŀؼþ¡£ ? ʹÓÃÃüÁî´´½¨±íµ¥£ºÔÚÃüÁî´°¿ÚÖÐÊäÈëÈçϵÄÃüÁ¿É´´½¨Ò»¸ö¡°²éѯ¡±±íµ¥¡£ ²éѯ=createobject('form')
modi form '²éѯ' 17¡¢Ö´ÐÐ±íµ¥ ? ÃüÁʽ£ºÔÚÃüÁî´°¿ÚÖÐÊäÈ룺 DO FORM <±íµ¥ÎļþÃû> ? ²Ëµ¥·½Ê½£ºÔÚ¡°±íµ¥¡±²Ëµ¥ÖÐÑ¡Ôñ¡°Ö´ÐÐ±íµ¥¡± ? ÏîÄ¿¹ÜÀíÆ÷·½Ê½£ºÔÚÏîÄ¿¹ÜÀíÆ÷ÖÐÑ¡Ôñ¡°±íµ¥¡±£¬²¢ÔËÐС£
4
µÚ¶þ²¿·Ö¡¶VFP³ÌÐòÉè¼Æ¡·ÊµÑé
Ò»¡¢ÊµÑé½ÌѧĿ±ê
ʵÑéÄ¿µÄÔÚÓÚ¸üÉîÈëµØÀí½âºÍÕÆÎտγ̽ÌѧÖеÄÓйػù±¾¸ÅÄӦÓûù±¾¼¼Êõ½â¾öʵ¼ÊÎÊÌ⣬´Ó¶ø½øÒ»²½Ìá¸ßѧÉú·ÖÎöÎÊÌâºÍ½â¾öÎÊÌâµÄÄÜÁ¦¡£VFP³ÌÐòÉè¼Æ¿Î³ÌʵÑéÒªÇóѧÉúÄÜÊìÁ·ÔËÓÃVFPµÄÃüÁî¡¢³ÌÐòÉè¼Æ·½·¨¡¢¸÷ÖÖÉè¼ÆÆ÷ºÍÉú³ÉÆ÷£¬±àд³ö½â¾öʵ¼ÊÎÊÌâµÄÊý¾Ý¿âÓ¦ÓóÌÐò¡£ ¶þ¡¢ÊµÑéÒªÇó
1) ʵÑé×¼±¸£º¼ÇÒäVFPµÄº¯Êý¡¢ÃüÁî¡¢³ÌÐòÉè¼ÆÓï¾ä£¬ÕÆÎÕ·ÖÖ§³ÌÐò¡¢Ñ»·³ÌÐò¡¢
×Ó³ÌÐòµÄÉè¼Æ·½·¨£¬ÕÆÎÕ±íµ¥Éè¼ÆÆ÷¡¢±¨±íÉè¼ÆÆ÷¡¢²Ëµ¥Éè¼ÆÆ÷µÄʹÓ÷½·¨£¬ÕÆÎÕ±íµ¥¡¢±¨±í¡¢²Ëµ¥µÄÉè¼Æ·½·¨¡£ 2) ʵÑéÒªÇó£ºÃ¿¸öѧÉúÔÚʵÑé¿ÎǰԤϰ±¾¿ÎʱÄÚÈݺͱ¾Õ½ڵÄÄÚÈÝ£¬ÈÏÕæÔĶÁʵÑé½Ì
²Ä£¬Àí½âʵÑéÒªÇóºÍʵÑéÄÚÈÝ£¬¶ÀÁ¢±àд³ÌÐò´úÂë¡£ÉÏ»úʱ£¬ÔËÐÐÔ´´úÂ룬µ÷ÊÔ³ÌÐò£¬Êä³öÕýÈ·µÄ½á¹û£¬Íê³ÉʵÑéÄ¿±ê¡£ÊµÑéÍê³Éºó£¬×ܽá¾Ñ飬ÈÏÕæÌîдʵÑ鱨¸æ¡£ 3) ¿¼ºËÒªÇó£ºÔڹ涨µÄʵÑéÊҺ͹涨µÄʱ¼äÄÚ£¬°´°à¼¶²Î¼ÓÉϼ¶¿¼ÊÔ£¬Ëæ»ú³éÈ¡ÊÔÌ⣬
°´ÒªÇóÍê³É²Ù×÷£¬¸ù¾Ý½á¹ûÕýÈ·ÐÔÈ·¶¨¿¼ºË³É¼¨ ¡£ Èý¡¢ÊµÑé¿Îʱ°²ÅÅ
Ðò ºÅ ʵÑéÒ» ʵÑé¶þ ʵÑéÈý ʵÑéËÄ ÊµÑéÎå ʵÑéÁù ʵÑéÆß ÊµÑé°Ë ʵÑé¾Å ʵÑéÊ® ʵÑéʮһ ʵÑéÊ®¶þ
ʵÑéÃû³Æ º¯ÊýºÍ±í´ïʽµÄʹÓà ½¨Á¢Ñ§Éú¹ÜÀíÊý¾Ý¿â ±íµÄά»¤ ±íµÄÅÅÐò¡¢Ë÷Òý¡¢²éѯºÍͳ¼Æ ¶à±íʹÓà Êý¾Ý¿âµÄ»ù±¾²Ù×÷ ³ÌÐòÉè¼Æ»ù±¾ÃüÁî ·ÖÖ§³ÌÐòÉè¼Æ Ñ»·³ÌÐòÉè¼Æ ×Ó³ÌÐòÉè¼Æ ²éѯÓëÊÓͼµÄ´´½¨ ±íµ¥Éè¼ÆÓë¿Ø¼þʹÓã¨Ò»£© 5
¿Î ʱ 2 2 2 2 2 2 2 2 2 2 2 2 ±Ø£¨Ñ¡£©×ö ±Ø×ö ±Ø×ö ±Ø×ö ±Ø×ö Ñ¡×ö ±Ø×ö ±Ø×ö ±Ø×ö ±Ø×ö ±Ø×ö Ñ¡×ö ±Ø×ö ʵÑéÊ®Èý ʵÑéÊ®ËÄ ÊµÑéÊ®Îå ʵÑéÊ®Áù ±íµ¥Éè¼ÆÓë¿Ø¼þʹÓ㨶þ£© ±íµ¥Éè¼ÆÓë¿Ø¼þʹÓã¨Èý£© ±¨±íÉè¼Æ ²Ëµ¥Éè¼Æ 2 2 2 2 ±Ø×ö ±Ø×ö ±Ø×ö ±Ø×ö ËÄ¡¢ÊµÑéÄÚÈÝ
6
ʵÑéÒ» º¯ÊýºÍ±í´ïʽµÄʹÓÃ
ʵÑéÄ¿µÄ£º
ͨ¹ý±¾´ÎʵÑ飬ÕÆÎÕVisual FoxPro 6.0ϵͳÖг£Á¿¡¢±äÁ¿¡¢±í´ïʽ¼°º¯ÊýµÄʹÓ÷½·¨¡£
ʵÑé×¼±¸£º
1. ÔĶÁµÚ3ÕÂÖÐÏà¹ØµÄÄÚÈÝ£»
2. Windows»·¾³Ï£¬ÔÚFÅ̵ĸùĿ¼Ï½¨Á¢¸öÈËÎļþ¼Ð£¬Æô¶¯Visual FoxPro 6.0ϵ
ͳ£¬ÔÚ¡°Ñ¡Ï¶Ô»°¿òÖÐÉèÖÃĬÈϵŤ×÷Ŀ¼ΪF:\\¸öÈËÎļþ¼ÐÃû¡£
ʵÑéÄÚÈÝ£º
1. 2. 3. 4. 5.
°´Ë³ÐòÔÚÃüÁî´°¿ÚÖÐÊäÈëÒÔϵÄÃüÁî²¢Ö´ÐУ¬²é¿´½á¹û£º ½«¡°ABC¡±¸³Öµ¸ø±äÁ¿A,B,C£»½«12.4¸³Öµ¸ø±äÁ¿D¡£ ÏÔʾÒѶ¨ÒåµÄA,B,CµÄÖµ£¬²é¿´Õâ4¸ö±äÁ¿µÄÊý¾ÝÀàÐÍ¡£
¶¨ÒåÒ»¸ö¶þάÊý×éArray1£¬ÒªÇó¸ÃÊý×éΪ3ÐÐ3ÁУ¬²¢¸øÆäÖеÄÊý¾Ý¸³²»Í¬ÀàÐ͵ÄÖµ¡£
ÏÔʾÊý×éArray1Öи÷¸öÔªËصÄÖµ¡£ Disp memo like array1* ÔÚÃüÁî´°¿ÚÔËÐÐÈçϵÄÃüÁ
AA=¡°¹¤³Ì¼¼Êõ¡± BB=¡°¼ÆËã»ú¡± CC=¡°2000¡±
DD=AA+¡° ¡±+BB+¡° ¡±+CC £¿AA$DD,DD$BB £¿AA+CC
£¿\£¿2**5=2^5 AND STR(2.5)=[2]
£¿¡°ABC ¡±-¡° DEF¡±=¡°ABCDEF¡± OR ¡°ABC¡±$¡°AB¡± £¿ NOT ¡°ABC¡±==¡°AB¡± ÔÚÃüÁî´°¿ÚÔËÐÐÈçϵÄÃüÁ
nl=24 xb=¡°Å®¡± hf=.F.
zc=¡°Öú½Ì¡± gz=530.70
£¿nl>30.OR.gz<600.AND..NOT.zc=¡°½²Ê¦¡± £¿(nl>30.OR.gz<=600).AND..NOT.zc=¡°½²Ê¦¡± £¿nl>25.AND..NOT.xb=¡°ÄС± £¿.NOT.hf.AND.xb=¡°Å®¡±
7
6.
7. ¼ÆËãÏÂÁк¯ÊýµÄÖµ£º
LEN(¡°ABCDEF¡±+SPACE(6))
SUBSTR(¡°Visual FoxPro 6.0³ÌÐòÉè¼Æ¡±,5,6) DATE()
YEAR(DATE()) DTOC(DATE()) ROUND(256.89,1) REPLICATE(¡°*¡±,6)
LEN(STR(95643.5136,8,1)) STR(95643.5136) STR(95643.5136,8,2) STR(95643.5136,8) STR(95643.5136,3) VAL(¡°25.5¡±) VAL(¡°123ABC¡±) VAL(¡°8769.3421¡±)
ʵÑéС½á£º
8
ʵÑé¶þ ½¨Á¢Ñ§Éú¹ÜÀíÊý¾Ý¿â
ʵÑéÄ¿µÄ£º
1. ÕÆÎÕÏîÄ¿¹ÜÀíÆ÷µÄʹÓ÷½·¨£»
2. ÊìÁ·ÕÆÎÕÊý¾Ý¿â±íÉè¼ÆÆ÷µÄ²Ù×÷·½·¨£» 3. ÕÆÎÕ±íµÄ´´½¨ºÍ±í¼Ç¼ÊäÈë·½·¨¡£
ʵÑé×¼±¸£º
1. ÔĶÁµÚ4ÕÂÖÐÏà¹ØµÄÄÚÈÝ£»
2. Æô¶¯Visual FoxPro 6.0ϵͳ£¬ÉèÖÃĬÈϵŤ×÷Ŀ¼ΪF:\\¸öÈËÎļþ¼ÐÃû¡£
ʵÑéÄÚÈÝ£º
1. Æô¶¯ÏîÄ¿¹ÜÀíÆ÷£¬ÔÚF:\\¸öÈËÎļþ¼ÐÏ´´½¨Ò»¸öÏîÄ¿Îļþ£¬ÃüÃûΪXSGL.PJX¡£ 2. ÔÚн¨µÄÏîÄ¿XSGLÖн¨Á¢Èý¸ö±í£¬·Ö±ðΪѧÉú±í¡¢¿Î³Ì±í¡¢³É¼¨±í¡£ 3. °´ÏÂͼÄÚÈݽ¨Á¢Èý¸ö±íµÄ½á¹¹£º
ѧÉú±í.dbf
¿Î³Ì±í.dbf
9
³É¼¨±í.dbf
4. µ±³öÏÖÏÂÃæµÄ¶Ô»°¿òʱ£¬Ñ¡ÔñY£¬ÎªÑ§Éú±í¡¢¿Î³Ì±í¡¢³É¼¨±íÊäÈë20Ìõ¼Ç¼¡£
ʵÑéС½á£º
10
ʵÑéÈý ±íµÄά»¤
ʵÑéÄ¿µÄ£º
1. 2. 3. 4.
ÊìÁ·ÕÆÎÕÐ޸ıí½á¹¹ºÍä¯ÀÀ±í¼Ç¼£»
ÕÆÎÕ±í¼Ç¼µÄÌí¼Ó¡¢±à¼¡¢É¾³ý¡¢»Ö¸´¡¢¶¨Î»µÄ·½·¨£» ÕÆÎÕÎļþµÄ¸´ÖÆ¡¢É¾³ý¡¢¸üÃû£» ÕÆÎÕÊý×éÓë±íÖ®¼äµÄÊý¾Ý½»»»¡£
ʵÑé×¼±¸:
1. ÔĶÁµÚ4ÕÂÖÐÏà¹ØµÄÄÚÈÝ£»
2. ×¼±¸ºÃÇ°ÃæʵÑéËù´´½¨µÄÏîÄ¿ºÍ±íÎļþ£»
3. Æô¶¯Visual FoxPro 6.0ϵͳ£¬ÉèÖÃĬÈϵŤ×÷Ŀ¼ΪF:\\¸öÈËÎļþ¼ÐÃû¡£
ʵÑéÄÚÈÝ£º
1. ÔÚÃüÁî´°¿ÚÖÐÊäÈë USE ѧÉú±í£¬´ò¿ª±íÎļþ¡£ 2. ÖðÐÐÊäÈë¡¢Ö´ÐÐÈçϵÄÃüÁ²¢¹Û²ì¡¢±È½Ï½á¹û£º
BROWSE
BROWSE FIELDS ÐÕÃû,ѧºÅ,ÐÔ±ð FOR ÐÔ±ð=.T. FREE ÐÕÃû
BROWSE FIELDS ÐÕÃû,ѧºÅ,ÐÔ±ð FOR ÐÔ±ð=.T. FREE ÐÕÃû LOCK 2
BROWSE FIELDS ÐÕÃû,ѧºÅ,ÐÔ±ð FOR ÐÔ±ð=.T. FREE ÐÕÃû LOCK 2 NOMENU
BROWSE FIELDS ÐÕÃû,ѧºÅ,ÐÔ±ð FOR ÐÔ±ð=.T. FREE ÐÕÃû LOCK 2 NOMENU
PARTITION 1
BROWSE FIELDS ÐÕÃû,ѧºÅ,ÐÔ±ð FOR ÐÔ±ð=.T. FREE ÐÕÃû LOCK 2 NOMENU
PARTITION 3 LEDIT
3. ÔÚÃüÁî´°¿ÚÖÐÊäÈ룺DISPLAY ALL ÃüÁî,²é¿´¼Ç¼¡£ 4. ÔÚÃüÁî´°¿ÚÖÐʹÓÃAPPENDÃüÁÌí¼Ó10Ìõ¼Ç¼¡£
5. ʹÓÃGOÃüÁî»òSKIPÒƶ¯Ö¸Õëµ½µÚ8Ìõ¼Ç¼£¬Ê¹ÓÃINSERTÃüÁî²åÈëÒ»Ìõ¼Ç¼¡£ 6. ÒÀ´ÎÊäÈëÃüÁ GO BOTTOM£¬?EOF(),SKIP£¬?EOF()¡£
7. ʹÓÃDELETEÃüÁîɾ³ý×îºóÒ»Ìõ¼Ç¼¡¢Ê¹ÓÃRECALLÃüÁî»Ö¸´¼Ç¼¡£ 8. ʹÓÃCOPY FILE ÃüÁÖÆÈÎÒâÎļþ¡¢Ê¹ÓÃCOPY TO ÃüÁÖÆѧÉú±íÎļþµ½Ð±íABC
ÖС¢Ê¹ÓÃCOPY STRU ÃüÁÖÆѧÉú±í½á¹¹µ½Ð±íXYZÖУ¬²é¿´Ð±íABCµÄÄÚÈÝ£¬²é¿´Ð±íXYZµÄÄÚÈÝ¡£
9. ѧÉú±íµÄ¼Ç¼ָÕëÖ¸ÏòµÚ8Ìõ£¬Ê¹ÓÃSCATTER ÃüÁî°ÑѧÉú±íµÄµ±Ç°¼Ç¼µÄÖµ´«ËÍ
¸øÊý×éA£¬Ñ§Éú±íβ׷¼ÓÒ»Ìõпհ׼Ǽ£¬ÔÙʹÓÃGATHER ÃüÁî°ÑÊý×éAÖеÄÖµ´«Ë͸øѧÉú±íµÄµ±Ç°¼Ç¼¡£
10. ʹÓÃREPLACEÃüÁîÐÞ¸ÄѧÉú±í£¬°ÑÐÕÃûΪ¡°¸ß´óɽ¡±µÄͬѧµÄ¼Òͥסַ¸ÄΪÉϺ£
ÊÐÆÖ¶«Çø¡£
REPL ¼Òͥסַ WITH \ÉϺ£ÊÐÆÖ¶«Çø\ÐÕÃû=\¸ß´óɽ\
BROW
11. ʹÓÃCHANGEÃüÁîÐÞ¸ÄѧÉú±í£¬Ð޸İ༶Ϊ¡°»á¼Æѧ¡±µÄͬѧµÄÐÕÃû¡¢°à¼¶¡¢¼ÒÍ¥
11
סַ¡¢µç»°¡£
CHANGE FIELDS ÐÕÃû,°à¼¶,¼ÒÍ¥µØÖ·,µç»° ALL FOR °à¼¶=\»á¼Æѧ\
12. ʹÓÃCREATEÃüÁî´´½¨Ñ§Éú±í1¡¢¿Î³Ì±í1¡¢³É¼¨±í1£¬¸÷¸ö±íµÄ½á¹¹ÓëʵÑé¶þÖиø
³öµÄ½á¹¹Ïàͬ¡£
ʵÑéС½á£º
12
ʵÑéËÄ ±íµÄÅÅÐò¡¢Ë÷Òý¡¢²éѯºÍͳ¼Æ
ʵÑéÄ¿µÄ£º
1. 2. 3. 4. 5.
ÕÆÎÕ½¨Á¢ÅÅÐòºÍË÷ÒýµÄ·½·¨£» ÕÆÎÕ¼¸ÖÖË÷ÒýµÄÇø±ð£»
ÕÆÎÕʹÓÃË÷Òý¿ìËÙ²éѯµÄ·½·¨£» ÕÆÎÕʹÓÃLOCATE ÃüÁî²éѯµÄ·½·¨£» ÕÆÎÕ±íµÄͳ¼ÆÓë»ã×ܵķ½·¨¡£
ʵÑé×¼±¸:
1. ÔĶÁµÚ4ÕÂÖÐÏà¹ØµÄÄÚÈÝ£»
2. ×¼±¸ºÃÇ°ÃæʵÑéËù´´½¨µÄÏîÄ¿ºÍ±íÎļþ£»
3. Æô¶¯Visual FoxPro 6.0ϵͳ£¬ÉèÖÃĬÈϵŤ×÷Ŀ¼ΪF:\\¸öÈËÎļþ¼ÐÃû¡£
ʵÑéÄÚÈÝ£º
1. ʹÓÃUSEÃüÁî´ò¿ªÑ§Éú±í£¬°´¡°°à¼¶¡±×ֶεÄÉýÐò½øÐÐÅÅÐò£¬°à¼¶ÏàͬÕߣ¬°´¡°Ñ§
ºÅ¡±×ֶεÄÉýÐò½øÐÐÅÅÐò£¬ÏÔʾÅÅÐòÎļþµÄÄÚÈÝ¡£
2. ¶ÔѧÉú±í°´°à¼¶½¨Á¢µ¥Ë÷ÒýÎļþS1.IDX£¬°´°à¼¶+ѧºÅ½¨Á¢µ¥Ë÷ÒýÎļþS2.IDX¡£ 3. ¶ÔѧÉú±í·Ö±ð°´Ñ§ºÅ¡¢°à¼¶+ÐÕÃû¡¢°à¼¶+ÐÔ±ð¡¢ÐÕÃû½¨Á¢½á¹¹»¯¸´ºÏË÷ÒýÎļþµÄ±ê
ʶB1¡¢B2¡¢B3¡¢B4¡£ 4. ¹Ø±ÕËùÓеÄÎļþ¡£
5. ÓÃUSEÃüÁî´ò¿ªÑ§Éú±í£¬ÓÃSET INDEX TO ÃüÁî´ò¿ªµ¥Ë÷ÒýÎļþS1ºÍS2,ÓÃSET
ORDER TO ÃüÁîÉèÖÃÖ÷Ë÷ÒýΪB2£¬ÏÔʾÄÚÈÝ¡£
6. ÓÃSET ORDER TO ÃüÁîÉèÖÃÖ÷Ë÷ÒýΪB1£¬ÏÔʾÆäÄÚÈÝ£¬ÓÃFINDÃüÁî²éѯѧºÅΪ
¡°20031105¡±µÄѧÉúÐÅÏ¢¡£
7. ÓÃSET ORDER TO ÃüÁîÉèÖÃÖ÷Ë÷ÒýΪB4£¬ÓÃFINDÃüÁî²éѯÐÕÃûΪ¡°Íõ¹âöΡ±µÄѧ
ÉúÐÅÏ¢¡£ 8. ÓÃSET ORDER TO ÃüÁîÉèÖÃÖ÷Ë÷ÒýΪB2£¬ÓÃSEEKÃüÁî²éѯ°à¼¶Îª¡°»á¼Æѧ¡±¡¢ÐÕÃû
Ϊ¡°ËïÁ¢¾ê¡±µÄѧÉúÐÅÏ¢¡£
9. ÓÃLOCATEÃüÁî²éÕҰ༶Ϊ¡°»á¼ÆµçË㻯¡±µÄËùÓÐѧÉúÐÅÏ¢£¬ÖðÌõÏÔʾ¡£ 10. ͳ¼ÆËùÓÐѧÉúµÄÈËÊý£¬°à¼¶Îª¡°»á¼Æѧ¡±µÄѧÉúÈËÊý¡£
11. ´ò¿ª³É¼¨±í£¬Í³¼ÆѧºÅΪ¡°20031101¡±Ñ§ÉúµÄ×Ü·Ö¡¢Æ½¾ù·Ö¡£ 12. ¶Ô³É¼¨±íÖеijɼ¨°´Ñ§ºÅ½øÐзÖÀà»ã×Ü¡£
ʵÑéС½á£º
13
ʵÑéÎå ¶à±íʹÓÃ
ʵÑéÄ¿µÄ£º
1. 2. 3. 4.
Àí½â¡¢ÕÆÎն๤×÷ÇøµÄ¸ÅÄ ÕÆÎÕ±íÖ®¼äÁÙʱ¹ØϵµÄ½¨Á¢·½·¨£» ÕÆÎÕ±íÖ®¼äµÄÁ¬½Ó·½·¨£»
ÕÆÎն๤×÷ÇøÖ®¼äµÄ±íÄÚÈݵĸüС£
ʵÑé×¼±¸:
1. ÔĶÁµÚ4ÕÂÖÐÏà¹ØµÄÄÚÈÝ£»
2. ×¼±¸ºÃÇ°ÃæʵÑéËù´´½¨µÄÏîÄ¿ºÍ±íÎļþ£»
3. Æô¶¯Visual FoxPro 6.0ϵͳ£¬ÉèÖÃĬÈϵŤ×÷Ŀ¼ΪF:\\¸öÈËÎļþ¼ÐÃû¡£
ʵÑéÄÚÈÝ£º
1. ÔÚ1ºÅ¹¤×÷ÇøÖдò¿ªÑ§Éú±í£¬ÔÚ2ºÅ¹¤×÷ÇøÖдò¿ª³É¼¨±í,Ñ¡Ôñ1ºÅ¹¤×÷ÇøΪµ±Ç°
¹¤×÷Çø£¬ÒÔѧºÅ×ֶν¨Á¢Ë÷Òý£¬Ñ¡Ôñ2ºÅ¹¤×÷ÇøΪµ±Ç°¹¤×÷Çø£¬ÒÔѧºÅ×ֶν¨Á¢Ë÷Òý£¬Ñ¡Ôñ1ºÅ¹¤×÷ÇøΪµ±Ç°¹¤×÷Çø£¬ÓÃset relationÃüÁÁ¢¹ØÁª¡£ÏÔʾѧºÅΪ¡°20031101¡±Ñ§ÉúµÄѧºÅ£¬¿Î³ÌºÅ£¬³É¼¨¡£ sele 1 use ѧÉú±í sele 2 use ³É¼¨±í sele 1
index on ѧºÅ to s1 sele 2
index on ѧºÅ to s2 sele 1
set relat to ѧºÅ into B
list ѧºÅ,b.¿Î³ÌºÅ,b.³É¼¨ for ѧºÅ=\
2. °ÑÒÑ´æÔÚµÄѧÉú±íºÍ³É¼¨±íͨ¹ý¡°Ñ§ºÅ¡±×Ö¶ÎÁª½ÓÆðÀ´£¬Éú³ÉеıíÎļþ¡°Ñ§Éú³É
¼¨±í¡±£¬Ð±íÖаüº¬ÈçÏÂ×ֶΣºÑ§ºÅ£¬ÐÕÃû£¬°à¼¶£¬¿Î³ÌºÅ£¬³É¼¨¡£ SELE 1 USE ѧÉú±í SELE 2 USE ³É¼¨±í SELE 1
JOIN WITH B TO ѧÉú³É¼¨ FOR ѧºÅ=B.ѧºÅ FIELDS ѧºÅ£¬ÐÕÃû£¬°à¼¶£¬B.¿Î³ÌºÅ£¬B.³É¼¨
3. ÓñíÉè¼ÆÆ÷ÐÞ¸ÄѧÉú±í½á¹¹£¬Ôö¼Ó¡°×ܳɼ¨¡±×ֶΣ¬Óóɼ¨±íµÄ³É¼¨×ܺÍÀ´¸üÐÂѧ
Éú±íµÄ¡°×ܳɼ¨¡±×Ö¶ÎÖµ¡£
14
SELE 1
USE ѧÉú±í
index on ѧºÅ to s1
sele 2
USE ³É¼¨±í
index on ѧºÅ to s2 SELE 1
UPDATE ON ѧºÅ FROM B REPLACE ×ܳɼ¨ WITH ×ܳɼ¨+B.³É¼¨ DISP ALL
ʵÑéС½á£º
15
ʵÑéÁù Êý¾Ý¿âµÄ»ù±¾²Ù×÷
ʵÑéÄ¿µÄ£º
1. 2. 3. 4. 5.
ÕÆÎÕÏîÄ¿¹ÜÀíÆ÷·½Ê½¡¢²Ëµ¥·½Ê½ºÍÃüÁʽ´´½¨Êý¾Ý¿âµÄ·½·¨£» ÊìÁ·ÕÆÎÕÔÚÊý¾Ý¿âÖÐÌí¼ÓºÍÒÆÈ¥±íµÄ²Ù×÷£» ÍêÉƱíµÄÓÐЧÐÔ¹æÔò£»
ÕÆÎÕ½¨Á¢±íÖ®¼äÓÀ¾Ã¹ØϵµÄ·½·¨£»
ÕÆÎÕÏà¹Ø±íÖ®¼äÊý¾Ý²ÎÕÕÍêÕûÐÔµÄÉèÖ÷½·¨¡£
ʵÑé×¼±¸:
1. 2. 3. 4.
ÔĶÁµÚ5ÕÂÖÐÏà¹ØµÄÄÚÈÝ£»
×¼±¸ºÃÇ°ÃæʵÑéËù´´½¨µÄÏîÄ¿ºÍ±íÎļþ£»
Æô¶¯Visual FoxPro 6.0ϵͳ£¬ÉèÖÃĬÈϵŤ×÷Ŀ¼ΪF:\\¸öÈËÎļþ¼ÐÃû£» ´ò¿ªXSGLÏîÄ¿µÄÏîÄ¿¹ÜÀíÆ÷¡£
ʵÑéÄÚÈÝ£º
1. ÓÃÃüÁʽ´´½¨Êý¾Ý¿âXSGL.DBC£¬ÔÙÊý¾Ý¿âÖÐÌí¼ÓѧÉú±í¡¢³É¼¨±í¡¢¿Î³Ì±í¡£ 2. Ôڳɼ¨±íµÄ±íÉè¼ÆÆ÷ÖÐÉèÖÃ×ֶεÄÓÐЧÐÔ¹æÔò£¬³É¼¨×ֶεĹæÔòΪ£º³É¼¨>=0 AND
³É¼¨<=100,Èç¹ûÎ¥·´¹æÔò£¬ÔòÐÅϢΪ¡°³É¼¨±ØÐëÔÚ0~100Ö®¼ä! ÇëÖØÐÂÊäÈ롱¡£¼ìÑé´¥·¢£º°Ñij¸öѧÉúµÄ³É¼¨¸ÄΪ120·Ö£¬¹Û²ìÊÇ·ñÎ¥·´Á˹æÔò¡£
3. ´´½¨¼Ç¼¼¶ÓÐЧÐÔ¹æÔò¡£Ôö¼Ó¡°³öÉúÈÕÆÚ¡±×ֶκ͡°ÄêÁ䡱×ֶΣ¬ÔڼǼ¼¶ÓÐЧÐÔ
¹æÔòÖÐÊäÈë±í´ïʽ£ºYEAR(DATE())-YEAR(³öÉúÈÕÆÚ))=ÄêÁä 4. ´´½¨±íµÄ´¥·¢Æ÷£¬Ê¹ÓñíÉè¼ÆÆ÷ΪѧÉú±íÉèÖÃÈý¸ö´¥·¢Æ÷¡£ÔÚ¸üд¥·¢Æ÷ÖÐÊäÈë±í
´ïʽ£ºÑ§ºÅ>¡°20030000¡± AND ѧºÅ<¡°20040000¡±¡£ ¼ìÑéһϴ¥·¢Æ÷ÊÇ·ñÓÐЧ¡£ 5. ÔÚÊý¾Ý¿âÉè¼ÆÆ÷´°¿ÚÖУ¬ÔÚѧÉú±íµÄÉè¼ÆÆ÷ÖÐÒÔ¡°Ñ§ºÅ¡±½¨Á¢Ö÷Ë÷Òý£¬Ôڳɼ¨±íµÄ
Éè¼ÆÆ÷ÖÐÒÔ¡°Ñ§ºÅ¡±½¨Á¢ÆÕͨË÷Òý£¬ÔÚѧÉú±íºÍ³É¼¨±íÖ®¼ä½¨Á¢ÓÀ¾Ã¹Øϵ¡£ 6. ÉèÖÃѧÉú±íºÍ³É¼¨±íµÄ²ÎÕÕÍêÕûÐÔ¡£ÆäÖС°¸üйæÔò¡±¡¢¡°É¾³ý¹æÔò¡±¡¢¡°²åÈë¹æÔò¡±
Èý¸öÑ¡Ï·Ö±ðÑ¡Ôñ¡°¼¶Áª¡±¡¢¡°¼¶Áª¡±¡¢¡°ÏÞÖÆ¡±¡£
ʵÑéС½á£º
16
ʵÑéÆß ³ÌÐòÉè¼Æ»ù±¾ÃüÁî
ʵÑéÄ¿µÄ£º
1. 2. 3. 4.
ÕÆÎÕ½»»¥Ê½ÊäÈëÃüÁ ÕÆÎÕ¸ñʽ»¯ÊäÈëÃüÁ
ÕÆÎÕ³ÌÐòÉè¼ÆµÄÊä³öÃüÁ ÕÆÎÕ¸ñʽ»¯Êä³öÃüÁî¡£
ʵÑé×¼±¸:
1. 2. 3. 4.
ÔĶÁµÚ6ÕÂÖÐÏà¹ØµÄÄÚÈÝ£»
×¼±¸ºÃÇ°ÃæʵÑéËù´´½¨µÄÏîÄ¿ºÍ±íÎļþ£»
Æô¶¯Visual FoxPro 6.0ϵͳ£¬ÉèÖÃĬÈϵŤ×÷Ŀ¼ΪF:\\¸öÈËÎļþ¼ÐÃû£» ´ò¿ªÑ§Éú±í¡£
ʵÑéÄÚÈÝ£º
1. Á·Ï°½»»¥Ê½ÊäÈëÃüÁîINPUT£º
INPUT ¡°ÇëÊäÈëѧÉúµÄÐÕÃû£º¡± TO XM INPUT ¡°ÇëÊäÈëѧÉúµÄ°à¼¶£º¡± TO BJ INPUT ¡°ÇëÊäÈëѧÉúµÄÐԱ𣺡± TO XB ? XM,BJ,XB
2. Á·Ï°½»»¥Ê½ÊäÈëÃüÁîACCEPT¡£
ACCEPT ¡°ÇëÊäÈëÒª´ò¿ªµÄ±íÎļþÃû¡± TO BM
USE &BM
3. Á·Ï°½»»¥Ê½ÊäÈëÃüÁîWAIT¡£
4. Á·Ï°¸ñʽ»¯ÊäÈëÃüÁî@¡GET¡READ£¬ÔÚѧÉú±íÖÐ×·¼ÓÒ»Ìõ¿Õ¼Ç¼£¬ÓÃGETÃüÁî¸ñʽ
»¯ÊäÈë¸÷¸ö×ֶεÄÖµ¡£ USE ѧÉú±í APPE BLANK
@ 5, 8 SAY ¡°ÇëÊäÈëѧºÅ£º¡± GET ѧºÅ @ 6, 8 SAY ¡°ÇëÊäÈëÐÕÃû£º¡± GET ÐÕÃû @ 7, 8 SAY ¡°ÇëÊäÈëÐԱ𣺡± GET ÐÔ±ð @ 8, 8 SAY ¡°ÇëÊäÈë°à¼¶£º¡± GET °à¼¶ @ 9, 8 SAY ¡°ÇëÊäÈëÄêÁ䣺¡± GET ÄêÁä
@ 10, 8 SAY ¡°ÇëÊäÈë³öÉúÈÕÆÚ£º¡± GET ³öÉúÈÕÆÚ @ 11, 8 SAY ¡°ÇëÊäÈë¼Òͥסַ£º¡± GET ¼Òͥסַ @ 12, 8 SAY ¡°ÇëÊäÈëÌس¤£º¡± GET Ìس¤ READ
5. Á·Ï°¸ñʽ»¯Êä³öÃüÁî@¡SAY¡£¬ÔÚÆÁÄ»ÉÏÊä³öѧÉú±íµÄµÚ¶þÌõ¼Ç¼¡£ USE ѧÉú±í
GO 2
17
@ 5, 8 SAY ѧºÅ @ 6, 8 SAY ÐÕÃû @ 7, 8 SAY ÐÔ±ð @ 8, 8 SAY °à¼¶ @ 9, 8 SAY ÄêÁä
@ 10, 8 SAY ³öÉúÈÕÆÚ @ 11, 8 SAY ¼Òͥסַ @ 12, 8 SAY Ìس¤
6. ¸ñʽ»¯ÊäÈëÊä³öµÄÁ·Ï°£¨½¨Á¢³ÌÐò£ºLX1.PRG£©
A1=.F.
A2=SPACE(15) A3=1234 A4=DATE()
@2,10 SAY ¡°ÊäÈëÂß¼¡±GET A1 @2,10 SAY ¡°±à¼×Ö·û¡±GET A2 @2,10 SAY ¡°ÊäÈëÊý¾Ý¡±GET A3 @2,10 SAY ¡°±à¼ÈÕÆÚ¡±GET A4 READ
ʵÑéС½á£º
18
ʵÑé°Ë ·ÖÖ§³ÌÐòÉè¼Æ
ʵÑéÄ¿µÄ£º
ÕÆÎսṹ»¯³ÌÐòÉè¼ÆµÄ·ÖÖ§½á¹¹³ÌÐòÉè¼Æ¡£
ʵÑé×¼±¸:
1. 2. 3. 4.
ÔĶÁµÚ6ÕÂÖÐÏà¹ØµÄÄÚÈÝ£»
×¼±¸ºÃÇ°ÃæʵÑéËù´´½¨µÄÏîÄ¿ºÍ±íÎļþ£»
Æô¶¯Visual FoxPro 6.0ϵͳ£¬ÉèÖÃĬÈϵŤ×÷Ŀ¼ΪF:\\¸öÈËÎļþ¼ÐÃû£» ´ò¿ªÑ§Éú±í¡¢³É¼¨±í¡£
ʵÑéÄÚÈÝ£º
1. Éè¼Æ¼òµ¥·ÖÖ§³ÌÐò¡£ÔÚѧÉú±íÎļþÖвéѯ¡°ÁõÀû¾ü¡±µÄ»ù±¾Çé¿ö£¬Èç¹ûÕÒµ½£¬ÏÔʾ
ÐÅÏ¢¡£
2. Éè¼ÆÑ¡Ôñ·ÖÖ§³ÌÐò£¬Ôڳɼ¨±íÎļþÖвéÕÒѧºÅΪ¡°20031102¡±µÄѧÉúµÄµÚÒ»Ãųɼ¨£¬
Èô³É¼¨´óÓÚ60·Ö£¬ÏÔʾÆäѧºÅ¡¢¿Î³ÌºÅ¡¢³É¼¨£»·ñÔòÏÔʾѧºÅ¡¢¿Î³ÌºÅ£¬²¢Í¨Öª²¹¿¼¡£
3. ÊäÈëÁ½¸öÊý°´´Ó´óµ½Ð¡Êä³ö¡£
input ¡°µÚÒ»¸öÊý£º¡± to x input ¡°µÚ¶þ¸öÊý£º¡± to y if x 4. Éè¼ÆÒ»¸ö¼òµ¥µÄ²Ëµ¥£¬°üÀ¨¶ÔѧÉú±í¼Ç¼µÄ×·¼Ó¡¢Ð޸ĺÍɾ³ýµÄ¹¦ÄÜ¡£ use ѧÉú±í ?\ Ôö¼Ó¼Ç¼\?\ Ð޸ļǼ\?\ ɾ³ý¼Ç¼\?\ Í˳ö\ wait \ÇëÑ¡Ôñ²Ëµ¥Ïî(1,2,3,4)\ to s do case case s=\ append case s=\ brow case s=\ 19 accept \ÇëÊäÈëҪɾ³ýѧÉúÐÕÃû£º\ to name dele for ÐÕÃû=name accept \ȷʵҪɾ³ýÂð(y/n):\ to yn if upper(yn)=\ pack endif case s=\return endcase return 5. ¸ù¾Ý¼üÈëµÄXÖµ£¬¼ÆËãÏÂÃæµÄ·Ö¶Îº¯ÊýÖµ£¬²¢ÏÔʾ½á¹û¡£ 2 5X+6X-1 (X¡Ü0) 2 X-4X+1 (0 3X+1 (X>20) ʵÑéС½á£º 20 ʵÑé¾Å Ñ»·³ÌÐòÉè¼Æ ʵÑéÄ¿µÄ£º ÕÆÎսṹ»¯³ÌÐòÉè¼ÆµÄÑ»·½á¹¹³ÌÐòÉè¼Æ¡£ ʵÑé×¼±¸: 1. ÔĶÁµÚ6ÕÂÖÐÏà¹ØµÄÄÚÈÝ£» 2. ×¼±¸ºÃÇ°ÃæʵÑéËù´´½¨µÄÏîÄ¿ºÍ±íÎļþ£» 3. Æô¶¯Visual FoxPro 6.0ϵͳ£¬ÉèÖÃĬÈϵŤ×÷Ŀ¼ΪF:\\¸öÈËÎļþ¼ÐÃû¡£ ʵÑéÄÚÈÝ£º 1. ±à³Ì£¬Çó1+2+3+¡¡¡+100µÄºÍ¡£ X=1 S=0 DO WHILE X<=100 S=S+X X=X+1 ENDDO ?S return 2. Çó1µ½100¼äËùÓÐżÊýÖ®ºÍ¡£ set talk off s=0 k=0 do while k<=100 k=k+1 if int(k/2)=k/2 s=s+k else loop endif enddo ?s return 3. ͳ¼ÆѧÉú±íÖеÄÅ®ÉúµÄÈËÊý¡£ set talk off use ѧÉú±í store 0 to s locate for ÐÔ±ð=\Å®\do while not eof() 21 ?ÐÕÃû,ÐÔ±ð s=s+1 continue enddo ?s use retu 4. Êä³ö3-100Ö®¼äµÄËØÊý¡£ for m=3 to 100 for i=2 to m-1 if int(m/i)=m/i exit endif endfor if i=m ??str(m,3)+\ endif next return 5. ±à³ÌÊä³öÈçÏÂͼÐΣº * * * * * * * * * * * * * * * * * * * * * * * * * 6. ÓÐÊýÁÐ1£¬1£¬2£¬3£¬5£¬8£¬13¡¡£¬ÒªÇóÏÔʾ¸ÃÊýÁÐÇ°20Ï²¢ÇÒÇóºÍ¡£ ʵÑéС½á£º 22 ʵÑéÊ® ×Ó³ÌÐòÉè¼ÆÓëÊý×é ʵÑéÄ¿µÄ£º 1. 2. 3. 4. ÕÆÎÕ¹ý³Ì½á¹¹µÄ³ÌÐòÉè¼Æ·½·¨£» Áì»áÄÚ²¿¹ý³ÌÓëÍⲿ¹ý³Ì£» Áì»áÈ«¾Ö±äÁ¿Óë¾ÖÓò±äÁ¿µÄ²»Í¬Ó÷¨£» ÕÆÎÕÊý×é±äÁ¿µÄÓ¦Ó÷½·¨¡£ ʵÑé×¼±¸: 1. 2. 3. 4. ÔĶÁµÚ6ÕÂÖÐÏà¹ØµÄÄÚÈÝ£» ×¼±¸ºÃÇ°ÃæʵÑéËù´´½¨µÄÏîÄ¿ºÍ±íÎļþ£» Æô¶¯Visual FoxPro 6.0ϵͳ£¬ÉèÖÃĬÈϵŤ×÷Ŀ¼ΪF:\\¸öÈËÎļþ¼ÐÃû£» ´ò¿ªÑ§Éú±í¡£ ʵÑéÄÚÈÝ£º 1. ÊÔ±àдһ³ÌÐò£¬Çó½âW=X!+Y!+Z!(X£¬Y£¬Z¾ùΪÕýÕûÊý)¡£ 2. ÊÔÉè¼Æ²¢±àдһ¸ö¡°Ñ§Éú¹ÜÀíϵͳ¡±£¬Ê¹Æä¾ßÓвéѯ¡¢Í³¼Æ¡¢ÏÔʾºÍÐ޸ıíÎļþÄÚ ÈݵŦÄÜ¡£¾ßÌåÒªÇóÊÇ£º £¨1£©³ÌÐòÓÉÒ»¸öÖ÷¿ØÄ£¿éºÍ4¸ö×ÓÄ£¿é£º²éѯ¡¢ÏÔʾ¡¢Í³¼Æ¡¢Ð޸Ĺ¹³É¡£ £¨2£©Äܹ»°´ÕÕ¸ø¶¨µÄµ¥Ò»Ìõ¼þ»ò·ûºÏÌõ¼þµ÷Óòéѯ×Ó³ÌÐò¡¢ÏÔʾ×Ó³ÌÐò ¡¢ÐÞ¸Ä×Ó³ÌÐò¡¢ ͳ¼Æ×Ó³ÌÐò¡£ 3. ÔËÓÃÊý×飬¶ÔÈÎÒâÊäÈëµÄ10¸öÕûÊý½øÐÐÅÅÐò£¬°´ÓÉ´óµ½Ð¡µÄ˳ÐòÊä³ö¡£ 4. ½¨Á¢Ö÷³ÌÐòMAIN.PRG,×Ó³ÌÐòSUB4.PRG,ÔËÐУ¬²é¿´½á¹û£¬Ìå»á±äÁ¿µÄ×÷ÓÃÓò¡£ MAIN.PRG: SET TALK OFF A=1 B=2 ?\ÔÚÖ÷³ÌÐòÖУºA=\DO SUB4 ? \·µ»ØÖ÷³ÌÐòºó£ºA=\SET TALK ON SUB4.PRG: PRIVATE B PUBLIC C A=10 B=11 C=12 D=13 ?\ÔÚ¹ý³ÌÖУºA=\RETURN 23 ʵÑéʮһ ²éѯÓëÊÓͼµÄ´´½¨ ʵÑéÄ¿µÄ£º 1. 2. 3. 4. 5. 6. Á˽â²éѯÓëÊÓͼµÄ»ù±¾¸ÅÄ ÕÆÎÕ²éѯµÄÁ½ÖÖ´´½¨·½Ê½£º²éѯÏòµ¼ºÍ²éѯÉè¼ÆÆ÷£» ÕÆÎÕ´´½¨»ùÓÚµ¥ÕűíºÍ¶àÕűíµÄ²éѯ·½·¨£» ÕÆÎÕÊÓͼµÄÁ½ÖÖ´´½¨·½Ê½£ºÊÓͼÏòµ¼ºÍÊÓͼÉè¼ÆÆ÷£» ÊìϤSQL_SELECTÓï¾äµÄʹÓã» Á˽âÊÓͼÓë²éѯµÄÇø±ð¡£ ʵÑé×¼±¸: 1. 2. 3. 4. ÔĶÁµÚ7ÕÂÖÐÏà¹ØµÄÄÚÈÝ£» ×¼±¸ºÃÇ°ÃæʵÑéËù´´½¨µÄÏîÄ¿¡¢Êý¾Ý¿âºÍ±íÎļþ£» Æô¶¯Visual FoxPro 6.0ϵͳ£¬ÉèÖÃĬÈϵŤ×÷Ŀ¼ΪF:\\¸öÈËÎļþ¼ÐÃû£» ´ò¿ªXSGLÏîÄ¿µÄÏîÄ¿¹ÜÀíÆ÷¡£ ʵÑéÄÚÈÝ£º 1. Á·Ï°´ò¿ª²éѯÉè¼ÆÆ÷µÄÈýÖÖ·½Ê½£ºÒ»ÊÇʹÓÃÏîÄ¿¹ÜÀíÆ÷£»¶þÊÇͨ¹ý¡°Îļþ¡±²Ëµ¥»ò ¹¤¾ßÀ¸Öеġ°Ð½¨¡±ÃüÁîн¨²éѯ£»ÈýÊÇCREATE QUERYÃüÁî¡£ 2. ÓòéѯÉè¼ÆÆ÷´´½¨»ùÓÚ¶à±íµÄ²éѯXSCJ.QPR£¬²éѯѧÉúµÄ¸ßµÈÊýѧµÄ³É¼¨Çé¿öÒÔ ¼°Æ½¾ù³É¼¨¡£ÆäÖÐÉæ¼°Èý¸ö±í£ºÑ§Éú±í¡¢³É¼¨±í¡¢¿Î³Ì±í¡£ 3. ÒÔϵÄ3¡ª8ʹÓÃSQL_SELECTÓï¾äÀ´Íê³É²éѯ£ºÔÚѧÉú±íÖмìË÷ËùÓа༶ֵ¡£ 4. ¼ìË÷ѧÉú±íÖÐÄÄЩ°à¼¶ÓмÒÍ¥µØÖ·ÊDZ±¾©µÄͬѧ¡£ 5. ¸ø³öÔÚ¡°»á¼ÆµçË㻯¡±°à¼¶µÄ£¬²¢ÇҸߵÈÊýѧ¶àÓÚ90·ÖµÄͬѧµÄÐÕÃû£¬Ñ§ºÅ¡£ 6. ¼ìË÷³ö¸ßµÈÊýѧ²»ÔÚ90µ½100·Ö·¶Î§ÄÚµÄѧÉúÐÅÏ¢¡£ 7. Çó»á¼Æ°àµÄѧÉúµÄ×îµÍ×Ü·Ö¡£ 8. ¶ÔÓÚѧÉú±í£¬°´°à¼¶Í³¼ÆÄÐÉúµÄÈËÊý£¬°´°à¼¶ÅÅÐò¡£ 9. ÓÃÊÓͼÉè¼ÆÆ÷´´½¨Ò»¸ö»ùÓÚѧÉú±íµÄÊÓͼ£¬ÒªÇóÏÔʾÐÕÃû¡¢Ñ§ºÅ¡¢¼ÒÍ¥µØÖ·×ֶΣ¬ ¿É¸üмÒÍ¥µØÖ·¡£ ʵÑéС½á£º 24 ʵÑéÊ®¶þ ±íµ¥Éè¼ÆÓë¿Ø¼þʹÓã¨Ò»£© ʵÑéÄ¿µÄ£º 1. 2. 3. 4. ÊìÁ·ÕÆÎÕÀûÓÃ±íµ¥Ïòµ¼´´½¨±íµ¥µÄ·½·¨£» ÕÆÎÕ±íµ¥Éè¼ÆÆ÷µÄʹÓ÷½·¨£» ÕÆÎÕ¼òµ¥±íµ¥µÄÊôÐÔ¡¢Ê¼þµÄÉè¼Æ£» ÕÆÎÕÔÚ±íµ¥ÖÐÌí¼Ó¿Ø¼þµÄ·½·¨£¬¿Ø¼þµÄÊôÐÔ¡¢Ê¼þÉè¼Æ·½·¨¡£ ʵÑé×¼±¸: 1. ÔĶÁµÚ8ÕÂÖÐÏà¹ØµÄÄÚÈÝ£» 2. ×¼±¸ºÃÇ°ÃæʵÑéËù´´½¨µÄÏîÄ¿¡¢Êý¾Ý¿âºÍ±íÎļþ£» 3. Æô¶¯Visual FoxPro 6.0ϵͳ£¬ÉèÖÃĬÈϵŤ×÷Ŀ¼ΪF:\\¸öÈËÎļþ¼ÐÃû£» ʵÑéÄÚÈÝ£º 1. ÀûÓÃ±íµ¥Ïòµ¼£¬Õë¶ÔÒÑ´´½¨µÄXSGLÏîÄ¿ÖеÄÊý¾Ý±í¡°Ñ§Éú±í¡±´´½¨Ò»¸öä¯ÀÀ¸ÃÊý ¾ÝÄÚÈݵġ°Ñ§ÉúÐÅÏ¢¡±±íµ¥xsxx1.scx¡£ 2. ÀûÓÃ±íµ¥Éè¼ÆÆ÷´´½¨Ò»¸öÐÂ±íµ¥£¬Ìí¼Ó2¸ö±êÇ©¿Ø¼þ£¨ÓÃ×÷ÔËËã·ûÏÔʾ£©¡¢3¸öÎÄ ±¾¿ò¿Ø¼þ¡¢Ò»¸öÃüÁî°´Å¥¿Ø¼þ¡£µ±ÔÚµÚÒ»¸öºÍµÚ¶þ¸öÎı¾¿òÖÐÊäÈëÁ½¸öÊý¾Ýºó£¬µ¥»÷¡°È·¶¨¡±°´Å¥£¬ÔÚµÚ3¸öÎı¾¿òÖÐÏÔʾÁ½¸öÊýµÄºÍ¡£±íµ¥±£´æΪFORM1.SCX£¬ÔËÐÐ×´¿öÈçÏÂͼËùʾ£º 3. ´´½¨Ò»¸ö¡°ÃÜÂëÊäÈ롱±íµ¥£¬Ìí¼ÓÁ½¸ö±êÇ©¿Ø¼þ£¨Ò»¸ö±êÌâΪ¡°ÃÜÂ롱£¬Ò»¸öÓÃÓÚ ÏÔʾ²Ù×÷µÄÌáʾÐÅÏ¢£©¡¢Ò»¸öÎı¾¿ò¡¢Èý¸öÃüÁî°´Å¥¡£µ±ÔÚÎı¾¿òÖÐÊäÈëÊý¾Ýʱȫ²¿ÏÔʾ¡°*¡±¡£µ±ÊäÈë¡°Visual FoxPro 6.0¡±£¬µã»÷È·¶¨°´Å¥Ê±£¬ÏÔʾΪ¡°ÃÜÂëÕýÈ·£¡¡±¡£µ±ÊäÈë·Ç¡°Visual FoxPro 6.0¡±£¬µã»÷È·¶¨Ê±£¬ÏÔʾΪ¡°ÃÜÂëÊäÈë´íÎó£¬ÇëÖØÐÂÊäÈ룡¡±¡£µ±µÚÈý´ÎÊäÈëÃÜÂë´íÎóʱ£¬ÏÔʾ¡°ÃÜÂëÊäÈë´íÎó£¬ÇëÍ˳ö£¡¡±¡£µã»÷Çå³ý°´Å¥£¬Çå³ýÎı¾¿òÖеÄÃÜÂ룬µÈ´ýÖØÐÂÊäÈë¡£±íµ¥±£´æΪFORM2.SCX¡£ 25 4. Éè¼ÆÒ»¸ö²éѯ±íµÄ´°¿Ú£¬ÈçÏÂͼËùʾ£¬ÒªÇóÄܶÔѧÉú±í¡¢³É¼¨±í¡¢¿Î³Ì±íµÄÄÚÈݽø Ðвéѯ¡£²Ù×÷²½ÖèÈçÏ£º £¨1£© н¨±íµ¥£¬ÉèÖÃ±íµ¥µÄCaptionÊôÐÔΪ¡°²éѯ±íµ¥¡±£¬ÔÚ±íµ¥ÉÏ´´½¨Ò»¸öÑ¡ Ïî°´Å¥×飬Á½¸öÃüÁî°´Å¥¡£ £¨2£© Ñ¡ÖÐÑ¡Ïî°´Å¥×飬µ¥»÷ÓÒ¼ü´ò¿ªÑ¡Ïî°´Å¥Éú³ÉÆ÷£¬É趨3¸öÑ¡Ïî°´Å¥µÄ±ê Ì⣬ÈçͼËùʾ¡£ £¨3£© ÔÚCommand1µÄClickʼþÖбàд´úÂëÈçÏ£º do case case thisform.optiongroup1.value=1 select * from ѧÉú±í case thisform.optiongroup1.value=2 select * from ³É¼¨±í case thisform.optiongroup1.value=3 select * from ¿Î³Ì±í endcase £¨4£© ÔÚCommand2µÄClickʼþÖбàд´úÂëÈçÏ£º close all Thisform.Release £¨5£© ±íµ¥±£´æΪFORM3.SCX£¬Ö´ÐÐ±íµ¥£¬¹Û²ìÔËÐнá¹û¡£ ʵÑéС½á£º 26 ʵÑéÊ®Èý ±íµ¥Éè¼ÆÓë¿Ø¼þʹÓ㨶þ£© ʵÑéÄ¿µÄ£º 1. ÊìÁ·ÕÆÎÕ±íµ¥Éè¼ÆÆ÷µÄʹÓ÷½·¨£» 2. ÕÆÎÕ±íµ¥µÄÊôÐÔ¡¢Ê¼þµÄÉè¼Æ£» 3. ÕÆÎÕ³£ÓÃ±íµ¥¿Ø¼þµÄʹÓᢿؼþµÄÊôÐÔ¡¢Ê¼þÉè¼Æ·½·¨¡£ ʵÑé×¼±¸: 1. ÔĶÁµÚ8ÕÂÖÐÏà¹ØµÄÄÚÈÝ£» 2. ×¼±¸ºÃÇ°ÃæʵÑéËù´´½¨µÄÏîÄ¿¡¢Êý¾Ý¿âºÍ±íÎļþ£» 3. Æô¶¯Visual FoxPro 6.0ϵͳ£¬ÉèÖÃĬÈϵŤ×÷Ŀ¼ΪF:\\¸öÈËÎļþ¼ÐÃû¡£ ʵÑéÄÚÈÝ£º 1. Éè¼Æ±íµ¥£¬ÈÃÓû§Î¢µ÷Ò»¶¨·¶Î§µÄÈÕÆÚ¡£²Ù×÷²½ÖèÈçÏ£º £¨1£©Ð½¨±íµ¥£¬ÉèÖÃ±íµ¥µÄCaptionÊôÐÔΪ¡°ÈÕÆÚ΢µ÷¡±£¬ÔÚ±íµ¥ÉÏ´´½¨Ò»¸ö΢µ÷°´Å¥£¬ ÔÚ΢µ÷°´Å¥ÅԱ߷ÅÖÃÒ»¸öÎı¾¿ò£¬»¹ÓÐÒ»¸ö±êÇ©£¬ÈçͼËùʾ¡£ £¨2£©Îı¾¿òµÄInitʼþÖбàд´úÂëÈçÏ£º thisform.text1.value=date() £¨3£©Î¢µ÷°´Å¥µÄUpclickʼþÖбàд´úÂëÈçÏ£º thisform.text1.value=thisform.text1.value+1 thisform.refresh £¨4£©ÔÚ΢µ÷°´Å¥µÄDownclickʼþÖбàд´úÂëÈçÏ£º thisform.text1.value=thisform.text1.value-1 thisform.refresh £¨5£©±£´æ±íµ¥ÎªFORM4.SCX,ÔËÐÐ±íµ¥£¬²é¿´½á¹û¡£ 2. Éè¼ÆÒ»¸ö±íµ¥£¬ÉèÖÃ±íµ¥µÄCaptionÊôÐÔΪ¡°¼ÆËã1¡±£¬Ìí¼ÓÈý¸öÎı¾¿ò£¬Ò»¸öÑ¡ Ïî°´Å¥×飬һ¸öÃüÁî°´Å¥£¬ÈçÏÂͼËùʾ¡£µ±Ñ¡Ôñ¡°Ñ¡Ïî1¡±Ê±£¬µã»÷¡°=¡µ¡±°´Å¥£¬Îı¾¿ò3ÖÐÏÔʾÎı¾¿ò1ºÍÎı¾¿ò2µÄ³Ë»ý£»µ±Ñ¡Ôñ¡°Ñ¡Ïî2¡±Ê±£¬µã»÷¡°=¡µ¡±°´Å¥£¬Îı¾¿ò3ÖÐÏÔʾÎı¾¿ò1µÄÎı¾¿ò2´Î·½¡£²Ù×÷²½ÖèÈçÏ£º £¨1£© ÉèÖÃÎı¾¿òµÄvalue ÊôÐÔΪ0,ÃüÁî°´Å¥µÄcaptionÊôÐÔΪ¡°>=¡±¡£ £¨2£© ÉèÖÃÃüÁî°´Å¥µÄclickʼþ´úÂëÈçÏÂ: if thisform.optiongroup1.value=1 27 thisform.text3.value= thisform.text1.value* thisform.text2.value else thisform.text3.value= thisform.text1.value** thisform.text2.value endif £¨3£© ±£´æ±íµ¥ÎªFORM5.SCX£¬ÔËÐÐ±íµ¥£¬ÊäÈë5ºÍ2£¬Ñ¡Ôñoption1£¬µã»÷¡°>=¡±£¬ ²é¿´½á¹û¡£ÔÙÑ¡Ôñoption2£¬µã»÷¡°>=¡±£¬²é¿´½á¹û¡£ 3. ÈçͼËùʾ£¬ÀûÓüÆʱÆ÷¿Ø¼þTIMER1ÿ¸ô1Ãë×Ô¶¯ÏòÏÂÒƶ¯Ñ§Éú±íÖеļǼ£¬Èç¹û µ½×îºóÒ»Ìõ¼Ç¼£¬ÔòÒƶ¯µ½µÚÒ»Ìõ¼Ç¼¡£²Ù×÷ÈçÏ£º £¨1£© н¨±íµ¥£¬ÉèÖÃ±íµ¥µÄCaptionÊôÐÔΪ¡°¼ÆʱÆ÷¡±£¬ÔÚ±íµ¥ÉÏ´´½¨2¸öÎı¾ ¿ò£¬ÔÚÎı¾¿òÅԱ߷ÅÖÃ2¸ö±êÇ©£¬ÁíÉèÒ»¸ö±êÇ©£¬ÔÙÉèÒ»¸ö¼ÆʱÆ÷£¬ÈçͼËùʾ¡£ £¨2£© ÔÚ±íµ¥Éϵ¥»÷ÓÒ¼ü£¬´ò¿ªÊý¾Ý»·¾³Éè¼ÆÆ÷£¬Ñ¡ÔñѧÉú±í¡£ £¨3£© ±êÇ©1µÄCaptionÊôÐÔΪ¡°Ñ§ºÅ¡±£¬±êÇ©2µÄCaptionÊôÐÔΪ¡°ÐÕÃû¡±£¬±ê Ç©3µÄCaptionÊôÐÔΪ¡°Ã¿¸ôÒ»ÃëÖÓ£¬×Ô¶¯ÏòÏÂÒƶ¯Ò»Ìõ¼Ç¼£¬Èç¹ûµ½×îºóÒ»Ìõ¼Ç¼£¬ÔòÒƶ¯µ½µÚÒ»Ìõ¼Ç¼¡£¡±¡£ £¨4£© Ö÷ÒªÊôÐÔÉèÖÃÈçÏ£º THISFORM.TEXT1.CONTROLSOURCE=¡°Ñ§Éú±í.ѧºÅ¡± THISFORM.TEXT2.CONTROLSOURCE=¡°Ñ§Éú±í.ÐÕÃû¡± THISFORM.TIMER1.INTERVAL=1000 THISFORM.TIMER1.ENABLED=.T. £¨5£© ¼ÆʱÆ÷¿Ø¼þTIMER1µÄTIMERʼþ´úÂëÈçÏ£º IF RECNO()=RECCOUNT() GO TOP 28 ELSE SKIP ENDIF THISFORM.REFRESH £¨6£© ±£´æ±íµ¥ÎªFORM6.SCX£¬ÔËÐÐ±íµ¥£¬²é¿´½á¹û¡£ 4. ÈçÏÂͼËùʾ£¬Îı¾¿òTEXT1¿ÉÒÔÊäÈëѧºÅ£¬Áбí¿òLIST1ÓÐÈý¸öÑ¡Ïµã»÷¡°Ö´ÐС± °´Å¥¿ÉÒÔÖ´ÐÐÁбí¿òÖжÔÓ¦µÄ¹¦ÄÜ¡£²Ù×÷ÈçÏ£º £¨1£© н¨±íµ¥£¬ÉèÖÃ±íµ¥µÄCaptionÊôÐÔΪ¡°²éѯ¼°Î¬»¤¡±£¬ÔÚ±íµ¥ÉÏÌí¼ÓÒ»¸ö Îı¾¿ò¡¢Ò»¸ö±êÇ©¡¢Ò»¸öÁбí¿òºÍÒ»¸öÃüÁî°´Å¥¡£ £¨2£© ÔÚ±íµ¥Éϵ¥»÷ÓÒ¼ü£¬´ò¿ªÊý¾Ý»·¾³Éè¼ÆÆ÷£¬Ñ¡ÔñѧÉú±í¡£ £¨3£© Ö÷ÒªÊôÐÔÉèÖÃÈçÏ£º THISFORM.LIST1.ROWSOURCETYPE=1 THISFORM.LIST1.ROWSOURCE=¡°1.²éÕÒ£¬2.ɾ³ý£¬3.×·¼Ó¡± £¨4£© ¡°Ö´ÐС±°´Å¥µÄCLICKʼþ´úÂëÈçÏ£º A=SUBSTR(THISFORM.LIST1.VALUE,1,1) LOCATE FOR ѧºÅ=THISFORM.TEXT1.VALUE DO CASE CASE A=\IF EOF() B=\ûÕÒµ½\ 29 ELSE B=\ÒѾÕÒµ½\ENDIF CASE A=\IF EOF() B=\ûÕÒµ½\ELSE DELETE B=\ÒѾɾ³ý\ENDIF CASE A=\IF EOF() APPE BLAN REPL ѧºÅ WITH THISFORM.TEXT1.VALUE B=\ÒѾ׷¼Ó\ENDIF ENDCASE MESSAGEBOX(B) £¨5£© ±£´æ±íµ¥ÎªFORM7.SCX£¬ÔËÐÐ±íµ¥£¬²é¿´½á¹û¡£ ʵÑéС½á£º 30 ʵÑéÊ®ËÄ ±íµ¥Éè¼ÆÓë¿Ø¼þʹÓã¨Èý£© ʵÑéÄ¿µÄ£º 1. ÊìÁ·ÕÆÎÕÀûÓÃ±íµ¥Éú³ÉÆ÷ºÍÉè¼ÆÆ÷´´½¨¡¢Éè¼Æ±íµ¥£» 2. ÊìÁ·ÕÆÎÕ³£ÓÃ±íµ¥¿Ø¼þµÄʹÓúÍʹÓÿؼþÉú³ÉÆ÷Éè¼Æ¿Ø¼þÊôÐÔ£» 3. ÕÆÎÕ±íµ¥ÖÐÖ÷ҪʼþµÄÉè¼Æ¡£ ʵÑé×¼±¸: 1. ÔĶÁµÚ8ÕÂÖÐÏà¹ØµÄÄÚÈÝ£» 2. ×¼±¸ºÃÇ°ÃæʵÑéËù´´½¨µÄÏîÄ¿¡¢Êý¾Ý¿âºÍ±íÎļþ£» 3. Æô¶¯Visual FoxPro 6.0ϵͳ£¬ÉèÖÃĬÈϵŤ×÷Ŀ¼ΪF:\\¸öÈËÎļþ¼ÐÃû¡£ ʵÑéÄÚÈÝ£º 1. Éè¼ÆÒ»¸ö·Öҳά»¤Ñ§Éú±íµÄ±íµ¥£¬ÈçÏÂͼËùʾ£º ²Ù×÷²½ÖèÈçÏ£º £¨1£© ´´½¨ÐÂ±íµ¥£¬½«±íµ¥µÄcaptionÊôÐÔÉèÖÃΪ¡°Ñ§Éú±íά»¤¡±£¬ÓÒ¼üµ¥»÷±íµ¥£¬ Ñ¡Ôñ¡°Éú³ÉÆ÷¡±£¬µ¥»÷±íµ¥Éú³ÉÆ÷µÄ¡°×ֶΡ±Ñ¡ÏµÄ°´Å¥£¬Ñ¡ÔñѧÉú ±í¡£½«¡°¿ÉÓÃ×ֶΡ±ÏÂÀÁбíÖеÄËùÓÐ×Ö¶ÎÌí¼Óµ½¡°Ñ¡¶¨×ֶΡ±ÏÂÀÁбíÖС£ÔÚ¡°Ñùʽ¡±Ñ¡ÏÖÐÑ¡Ôñ¡°¸¡µñ¡±Ñùʽ¡£µ¥»÷È·¶¨£¬´ËʱÔÚ±íµ¥Öд´½¨Á˺ÍѧÉú±íµÄËùÓÐ×ֶΰ󶨵Ŀؼþ¡£ £¨2£© ÔÚ±íµ¥Öд´½¨Ò»¸öÃüÁî°´Å¥×écommandgroup1,ÓÒ¼üµ¥»÷ÃüÁî°´Å¥×飬ѡÔñ ¡°Éú³ÉÆ÷¡±£¬ÔÚ¡°Éú³ÉÆ÷¡±µÄ¡°°´Å¥¡±Ñ¡ÏÖУ¬ÉèÖÃÈçÏÂͼËùʾµÄÊôÐÔ£¬²¢ÔÚ¡°²¼¾Ö¡±Ñ¡ÏÖÐÉèÖð´Å¥¼ä¸ôΪ25¸öÏñËØ¡£ 31 £¨3£© ÔÚcommand1°´Å¥µÄclickʼþÖбàдÏÂÁдúÂ룺 go top thisform.refresh ÔÚcommand2°´Å¥µÄclickʼþÖбàдÏÂÁдúÂ룺 if recn()>1 skip-1 thisform.refresh if recno()=1 thisform.commandgroup1.command1.enabled=.f. endif if thisform.commandgroup1.command4.enabled=.f. thisform.commandgroup1.command4.enabled=.t. endif endif ÔÚcommand3°´Å¥µÄclickʼþÖбàдÏÂÁдúÂ룺 if recno() thisform.refresh if recn()=reccount() thisform.commandgroup1.command4.enabled=.f. endif if thisform.commandgroup1.command1.enabled=.f. thisform.commandgroup1.command1.enabled=.t. endif endif ÔÚcommand4°´Å¥µÄclickʼþÖбàдÏÂÁдúÂ룺 go bottom thisform.refresh ÔÚcommand5°´Å¥µÄclickʼþÖбàдÏÂÁдúÂ룺 32 close database thisform.release £¨4£© ±£´æ±íµ¥ÎªFORM8.SCX£¬Ö´ÐÐ±íµ¥£¬µã»÷°´Å¥×éµÄ°´Å¥£¬¿ÉÒÔ·ÖÒ³ä¯ÀÀ ²¢ÇÒÐ޸ļǼ¡£ £¨5£© ÔÚ±íµ¥ÖÐÌí¼ÓÒ»¸öÁбí¿òLIST1£¬µ÷Õû±íµ¥µÄ½çÃ棬ÉèÖÃÁбí¿òµÄ ROWSOURCETYPEÊôÐÔΪ6£¬ROWSOURCEÊôÐÔΪѧÉú±í.°à¼¶,ÔÚLIST1µÄCLICKʼþÖбàдÏÂÁдúÂ룺 if thisform.list1.listindex=0 return endif a=thisform.list1.listindex thisform.°à¼¶1.value= thisform.list1.list(a) £¨6£© ±£´æ±íµ¥£¬Ö´ÐÐ±íµ¥¡£ 2. Éè¼Æ±íµ¥£¬ÒªÇó±íµ¥Ê¼ÖÕÏÔʾÔÚVisual FoxPro 6.0Ö÷´°¿ÚÖÐÑë¡£µ¥»÷±íµ¥£¬ÔÚ±í µ¥ÉÏÏÔʾһ¸ö×ÏÉ«Ô²ÐÎͼ°¸£»Ë«»÷±íµ¥£¬ÔÚ±íµ¥ÉÏÏÔʾһ¸öÀ¶É«¾ØÐÎͼ°¸¡£ÔÚÏÔʾͼÐÎʱ£¬½«ÉÏÒ»¸öͼÐÎÇå³ý¡£ÈçÏÂͼËùʾ¡£ ²Ù×÷²½ÖèÈçÏ£º £¨1£© н¨±íµ¥£¬½«±íµ¥µÄcaptionÊôÐÔÉèÖÃΪ¡°±äͼÐΡ±£¬ÔÚÊôÐÔ´°¿ÚÖн« AutoCenterÊôÐÔÉèÖÃΪ.T.¡£ £¨2£© Ϊ±íµ¥µÄclickʼþÌí¼Ó³ÌÐò£º thisform.cls thisform.forecolor=rgb(255,0,255) thisform.circle(30,60,60) £¨3£© Ϊ±íµ¥µÄDbclickʼþÌí¼Ó³ÌÐò£º thisform.cls thisform.forecolor=rgb(0,0,255) thisform.box(100,100,150,150) £¨4£© ±£´æ±íµ¥ÎªFORM9.SCX£¬Ö´ÐÐ±íµ¥£¬µ¥»÷¡¢Ë«»÷±íµ¥£¬¹Û²ì±ä»¯¡£ 3. Éè¼Æ±íµ¥£¬ÈçÏÂͼËùʾ£¬¸ù¾ÝÑ¡Ïî°´Å¥×éµÄÑ¡ÏîÀ´²éѯѧÉú±íÖеÄѧºÅ»òÐÕÃû£¬Èç ¹ûÕÒµ½·ûºÏÌõ¼þµÄ¼Ç¼£¬ÔòÓÒ²àÎı¾¿òÖÐÏÔʾ¸ÃͬѧÊÇ·ñ»ñµÃ½±Ñ§½ð£»Èç¹ûûÓÐÕÒµ½£¬ÔòÏÔʾ¡°Ã»ÓÐÕÒµ½¡±¡£²Ù×÷²½ÖèÈçÏ£º 33 £¨1£©´´½¨ÐÂ±íµ¥£¬½«±íµ¥µÄcaptionÊôÐÔÉèÖÃΪ¡°Ñ§Éú±í²éѯ¡±£¬ÔÚ±íµ¥Öд´½¨Ò»¸öÑ¡ Ïî°´Å¥×éOPTIONGROUP1£¬´´½¨Á½¸ö×éºÏ¿òCOMBO1ºÍCOMBO2£¬´´½¨Ò»¸öÃüÁî°´Å¥£¬Ò»¸öÎı¾¿ò¡£ £¨2£©½«Ñ¡Ïî1µÄCaptionÊôÐÔÉèÖÃΪ¡°°´Ñ§ºÅ¡±£¬½«Ñ¡Ïî2µÄCaptionÊôÐÔÉèÖÃΪ¡°°´ ÐÕÃû¡±£¬COMMAND1µÄCaptionÊôÐÔÉèÖÃΪ¡°²éѯ¡±¡£ £¨3£©ÔÚ±íµ¥Éϵ¥»÷ÓÒ¼ü£¬´ò¿ªÊý¾Ý»·¾³Éè¼ÆÆ÷£¬Ñ¡ÔñѧÉú±í¡£ £¨4£©Ö÷ÒªÊôÐÔÉèÖÃÈçÏ£º THISFORM.COMBO1.ROWSOURCE=¡°Ñ§Éú±í.ѧºÅ¡± THISFORM.COMBO1.ROWSOURCETYPE=6 THISFORM.COMBO2.ROWSOURCE=¡°Ñ§Éú±í.ÐÕÃû¡± THISFORM.COMBO1.ROWSOURCETYPE=6 THISFORM.OPTIONGROUP1.VALUE=1 £¨5£©¡°²éѯ¡±°´Å¥µÄCLICKʼþ´úÂëÈçÏ£º IF THISFORM.COMBO2.LISTINDEX = 0 LOCATE FOR ѧºÅ=THISFORM.COMBO1.VALUE ELSE LOCATE FOR ÐÕÃû=THISFORM.COMBO2.VALUE ENDIF IF NOT FOUND() THISFORM.TEXT1.VALUE = \ûÓÐÕÒµ½\ELSE IF »ñ½±Ñ§½ð=.T. THISFORM.TEXT1.VALUE=\¸Ãͬѧ»ñµÃ½±Ñ§½ð\ ELSE THISFORM.TEXT1.VALUE=\¸ÃͬѧûÓлñµÃ½±Ñ§½ð\ ENDIF ENDIF £¨6£©±£´æ±íµ¥ÎªFORM10.SCX£¬Ö´ÐУ¬ÔÚÏÂÀÁбí¿òÖÐÑ¡ÔñѧºÅ»òÐÕÃû£¬µ¥»÷¡°²é ѯ¡±°´Å¥£¬¹Û²ì½á¹û¡£ 4. ÀûÓüÆʱÆ÷¿Ø¼þTIMER1½«±íµ¥ÖеľØÐÎSHAPE1Öð½¥±äΪԲÐΣ¬Ã¿¸ô1Ãë±ä»¯Ò»´Î£¬ 34 ͬʱÔÚÎı¾¿òTEXT1ÖÐÏÔʾµ±Ç°ÒѾ¼ÆʱµÄÃëÊý£¬Èç¹ûÃëÊý´óÓÚµÈÓÚ99£¬ÔòÍ£Ö¹¼Æʱ¡£ÈçÏÂͼËùʾ£º £¨1£©´´½¨ÐÂ±íµ¥£¬½«±íµ¥µÄcaptionÊôÐÔÉèÖÃΪ¡°±äÐΡ±£¬ÔÚ±íµ¥Öд´½¨Ò»¸ö¼ÆʱÆ÷¿Ø ¼þTIMER1£¬Îı¾¿òTEXT1£¬Á½¸ö±êÇ©£¬Ò»¸öͼÐÎSHAPE1¡£ £¨2£©½«±êÇ©1µÄCaptionÊôÐÔÉèÖÃΪ¡°ÒѾ¼Æʱ¡±£¬½«±êÇ©2µÄCaptionÊôÐÔÉèÖÃΪ ¡°Ã롱£¬½«SHAPE1µÄBackStyleÊôÐÔÉèÖÃΪ1£¬½«SHAPE1µÄBackColorÊôÐÔÉèÖÃΪ0£¬0£¬255£¬½«Îı¾¿òTEXT1µÄvalueÊôÐÔÉèÖÃΪ0¡£ £¨3£©Ö÷ÒªÊôÐÔÉèÖÃÈçÏ£º THISFORM.SHAPE1.CURVATURE=0 THISFORM.TIMER1.INTERVAL=1000 THISFORM.TIMER1.ENABLED=.T. £¨4£©¼ÆʱÆ÷¿Ø¼þµÄTIMERʼþ´úÂëÈçÏ£º THISFORM.TEXT1.VALUE=THISFORM.TEXT1.VALUE+1 IF THISFORM.TEXT1.VALUE>=99 THISFORM.TIMER1.ENABLED=.F. ELSE THISFORM.SHAPE1.CURVATURE=THISFORM.SHAPE1.CURVATURE+1 THISFORM.REFRESH ENDIF £¨5£©±£´æ±íµ¥ÎªFORM11.SCX²¢Ö´ÐÐ±íµ¥£¬¹Û²ìͼÐεı仯¡£ ʵÑéС½á£º 35 ʵÑéÊ®Îå ¼òµ¥±¨±íµÄÉè¼Æ ʵÑéÄ¿µÄ£º 1. ÕÆÎÕÀûÓñ¨±íÏòµ¼¡¢±¨±íÉè¼ÆÆ÷´´½¨±¨±í¼°´´½¨¿ìËÙ±¨±íµÄ·½·¨£» 2. ÕÆÎÕºÍÀí½â±¾ÊµÑéÖгöÏÖµÄһЩ»ù±¾µÄVFPÓï¾ä¡£ ʵÑé×¼±¸: 1. ÔĶÁµÚ9ÕÂÖÐÏà¹ØµÄÄÚÈÝ£» 2. ×¼±¸ºÃÇ°ÃæʵÑéËù´´½¨µÄÏîÄ¿¡¢Êý¾Ý¿âºÍ±íÎļþ£» 3. Æô¶¯Visual FoxPro 6.0ϵͳ£¬ÉèÖÃĬÈϵŤ×÷Ŀ¼ΪF:\\¸öÈËÎļþ¼ÐÃû¡£ ʵÑéÄÚÈÝ£º 1. 2. 3. 4. 5. ΪѧÉú±í´´½¨Ò»¸ö¿ìËÙ±¨±í¡£ ÔÚ±¨±íÉè¼ÆÆ÷ÖÐÐÞ¸ÄѧÉú±íÎļþ¡£ ÖÆ×÷ѧÉúµµ°¸¿¨Æ¬¡£ ½«Ñ§Éú±íÎļþÐ޸ijɰ´¡°°à¼¶¡±·Ö×éµÄ±¨±í¡£ Éè¼ÆÒ»¸öѧÉúÐÅÏ¢¶àÀ¸±¨±í¡£ ʵÑéС½á£º 36 ʵÑéÊ®Áù ²Ëµ¥Éè¼Æ ʵÑéÄ¿µÄ£º 1. ÕÆÎÕÀûÓò˵¥Éè¼ÆÆ÷½¨Á¢ÏÂÀʽ²Ëµ¥¼°¿ì½Ý²Ëµ¥µÄ·½·¨£» 2. ÕÆÎÕºÍÀí½â±¾ÊµÑéÖгöÏÖµÄһЩ»ù±¾µÄVFPÓï¾ä¡£ ʵÑé×¼±¸: 1. ÔĶÁµÚ10ÕÂÖÐÏà¹ØµÄÄÚÈÝ£» 2. ×¼±¸ºÃÇ°ÃæʵÑéËù´´½¨µÄÏîÄ¿¡¢Êý¾Ý¿âºÍ±íÎļþ£» 3. Æô¶¯Visual FoxPro 6.0ϵͳ£¬ÉèÖÃĬÈϵŤ×÷Ŀ¼ΪF:\\¸öÈËÎļþ¼ÐÃû¡£ ʵÑéÄÚÈÝ£º 1. Éè¼ÆÒ»¸öѧÉú¹ÜÀíµÄÏÂÀ²Ëµ¥¡£ 2. Éè¼ÆÒ»¸ö¿ì½Ý²Ëµ¥¡£ ʵÑéС½á£º 37 2004Äê11Ô ºÚÁú½Ê¡¸ßУ·Ç¼ÆËã»úרҵѧÉú ¼ÆËã»úµÈ¼¶¿¼ÊÔÊÔ¾í ¶þ¼¶ VFP B¾í ±¾ÊÔ¾í´ð¾íʱ¼äΪ120·ÖÖÓ ËµÃ÷£º I. ±¾ÊÔ¾í11Ò³£¬¹²ÎåµÀ´óÌ⣬¿¼ÉúÓøֱʻòÔ²Öé±Ê´ð¾í¡£ II. ±¸ÓÐͨÓôð¾íÖ½£¬¸÷Ìâ´ð°¸°´ÎÊÌâÐòºÅдÔÚ´ð¾íÖ½ÏàӦλÖÃÉÏ¡£ III. ´ðÌâÇ°Çë°Ñ´ð¾íÖ½ÃÜ·âÏßÄÚ×¼¿¼Ö¤±àºÅ¼°ÐÕÃûÌîдÇå³þ¡£ IV. ÓöÓиñʽÊä³öʱ£¬Óá° ¡±·ûºÅ±íʾ¿Õ¸ñ¡£ Ò»¡¢»ù´¡²¿·Ö£º £¨±¾²¿·Ö25¸öСÌ⣬ÿСÌâ1·Ö£¬¹²25·Ö£¬´Ó¿É¹©Ñ¡ÔñµÄA¡¢B¡¢C¡¢DËÄÖÖ´ð°¸ÖУ¬Ñ¡³öÒ»ÖÖÕýÈ·µÄ´ð°¸¡£ËùÓд𰸾ùдÔÚ´ð¾íÖ½ÏàӦλÖÃÉÏ¡££© 1. ¼ÆËã»ú´®ÐпÚÅÔ±ßÒ»°ã±êÓУ¨1£©¡£ A.LPT1»òLPT2 B. CON1»òCON2 C.Serial1»òSerial2 D.COM1»òCOM2 2. Îļþ´«Êä·þÎñÖ÷ÒªÓ¦ÓÃÓÚÒòÌØÍøµÄ£¨2£©¡£ A.ÖÕ¶ËÓëÖÕ¶ËÖ®¼ä B.Ö÷»úÓëÖ÷»úÖ®¼ä C.B¡¢D¶¼¶Ô D.Ö÷»úÓëÖÕ¶ËÖ®¼ä 3. £¨3£©·þÎñ²»ÊÇÒòÌØÍøʵʱµÄÁª»ú·þÎñ¡£ A.ÍøÉÏÁÄÌì B.FTP C.BBS D.µç×ÓÓʼþ 4. Ò»°ãÇé¿öÏ£¬¶ÏµçÖ®ºóÍâ´æ´¢Æ÷Öд洢µÄÐÅÏ¢£¨4£©¡£ A.²¿·Ö¶ªÊ§ B.È«²¿¶ªÊ§ C.²»»á¶ªÊ§ D.´ó²¿·Ö¶ªÊ§ 5. ΢»úÖÐ1GB±íʾµÄ¶þ½øÖÆλÊýÊÇ£¨5£©¡£ A.1000k B.8¡Á1024M C.1024k D.8¡Á1000M 6. ÔÚwindowsµÄ¸÷ÖÖ¶Ô»°¿òÖУ¬ÓÐЩÏîÄ¿ÔÚÎÄ×Ö˵Ã÷µÄ×ó±ß±êÓÐÒ»¸öС·½¿ò£¬µ±Ð¡ ¿òÀïÓС°¡Å¡±·ûºÅʱ£¬±íÃ÷£¨6£©¡£ 38 A.ÕâÊÇÒ»¸öµ¥Ñ¡¿ò£¬ÇÒÒѱ»Ñ¡ÖÐ B.ÕâÊÇÒ»¸ö¶àÑ¡¿ò£¬ÇÒδ±»Ñ¡ÖÐ C.ÕâÊÇÒ»¸ö¶àÑ¡¿ò£¬ÇÒÒѱ»Ñ¡ÖÐ D.ÕâÊÇÒ»¸öµ¥Ñ¡¿ò£¬ÇÒδ±»Ñ¡ÖÐ 7. windows98ÖУ¬ÀûÓûØÊÕÕ¾£¨7£©¡£ A.Ö»ÄÜÔÚÒ»¶¨Ê±¼ä·¶Î§ÄÚ»Ö¸´Ó²ÅÌÉϱ»É¾³ýµÄÎļþ¡¢Îļþ¼Ð B.Ö»Äָܻ´¸Õ¸Õ±»É¾³ýµÄ¸÷ÖÖ´æ´¢Æ÷ÉϵÄÎļþ¡¢Îļþ¼Ð C.¿ÉÒÔÔÚÈκÎʱºò»Ö¸´Ó²ÅÌÉϱ»É¾³ýµÄÎļþ¡¢Îļþ¼Ð D.¿ÉÒÔÔÚÈκÎʱºò»Ö¸´¸÷ÖÖ´æ´¢Æ÷Éϱ»É¾³ýµÄÎļþ¡¢Îļþ¼Ð 8£®Window98ÖеÄ×¢ÏúÃüÁîÊÇÖ¸£¨8£©¡£ A£®ÖØÐÂÆô¶¯¼ÆËã»ú B£®¹Ø±Õµ±Ç°Óû§³ÌÐò²¢ÒÔÆäËûÓû§Éí·ÝµÇ¼ C£®ÒÔÉϴ𰸶¼²»ÕýÈ· D£®¹Ø±Õ¼ÆËã»ú 9£®ÏµÍ³²ÎÊýÉèÖÃ×÷ÓÃÊÇ£¨9£©¡£ A£®Ð޸ĻúÆ÷ÅäÖà B£®Çå³ý²¡¶¾ C£®¸Ä±ä²Ù×÷ϵͳ D£®Ôö¼ÓÍⲿÉ豸 10£®ÔÚwindows98϶ÔÈÎÎñÀ¸µÄ´íÎóÃèÊöÊÇ£¨10£©¡£ A£®ÈÎÎñÀ¸Ê¼ÖÕÒþ²Ø²»ÁË B£®ÈÎÎñÀ¸µÄλÖôóС¾ù¿É¸Ä±ä C£®ÈÎÎñÀ¸ÄÚÏÔʾµÄÊÇÒÑ´ò¿ªÎĵµ»òÒÑÔËÐгÌÐòµÄ±êÌâ D£®ÈÎÎñÀ¸ÉÏ¿ÉÌí¼Óͼ±êºÍ¿ì½Ý·½Ê½ 11£®Î¢ÐͼÆËã»úÖеÄÍâ´æ´¢Æ÷£¬ÏÖÔÚÆÕ±é²ÉÓã¨11£©¡£ A£®µç×ӹܴ洢Æ÷ B£®°ëµ¼Ìå´æ´¢Æ÷ C£®´Å±íÃæ´æ´¢Æ÷ D£®´Åо´æ´¢Æ÷ 12£®ÏÂÁи÷½øÖÆÊýÖÐÊýÖµ×îСµÄÊýÊÇ£¨12£©¡£ A£®110100£¨B£© B£®36£¨H£© C£®65£¨O£© D£®55£¨D£© 13£®FPTÊÇ£¨13£©·þÎñµÄ¼ò³Æ¡£ A£®Îļþ´¦Àí B£®Îļþת»» C£®Îļþ´«Êä D£®ÎļþÏÂÔØ 14£®UNIXÊÇÒ»ÖÖ£¨14£©¡£ A£®Êó±êÆ÷Çý¶¯³ÌÐò B£®²Ù×÷ϵͳ C£®×Ö´¦Àíϵͳ D£®Êý¾Ý¿â¹ÜÀíϵͳ 15£®ÔÚ×ÊÔ´¹ÜÀíÆ÷ÖУ¬Èç¹û·¢ÉúÎó²Ù×÷½«Ä³Îļþɾ³ý£¬¿ÉÒÔ£¨15£©¡£ A£® ÔÚ×ÊÔ´¹ÜÀíÆ÷ÖÐÖ´ÐС°³·Ïû¡°ÃüÁî B£® ´Ó»ØÊÕÕ¾Öн«´ËÎļþÍÏ»ØÔλÖà C£®ÔÚ»ØÊÕÕ¾ÖжԴËÎļþÖ´ÐС°»¹Ô¡°ÃüÁî D£®Ñ¡ÓÃA¡¢B¡¢CµÄÈÎÒ»¸ö 16£®ÔÚ¼ÆËã»úÁìÓòÖÐͨ³£ÓÃMIPSÀ´ÃèÊö£¨16£©¡£ A£®¼ÆËã»úµÄ´æ´¢ÈÝÁ¿ B£®¼ÆËã»úµÄ¿É¿¿ÐÔ C£®¼ÆËã»úµÄ¿ÉÔËÐÐÐÔ D£®¼ÆËã»úµÄÔËËãËÙ¶È 17£®ÈËÃÇʹÓø߼¶ÓïÑÔ±àдµÄ³ÌÐò£¬Ò»°ãÏÈÓ¦µ±·Òë³É£¨17£©¡£ 39 A£®±àÒë³ÌÐò B£®Ä¿±ê³ÌÐò C£®Ö´ÐгÌÐò D£®½âÊͳÌÐò 18£®ÔÚÄÚ´æÖУ¬Ã¿¸ö»ù±¾µ¥Î»¶¼±»¸³ÓèÒ»¸öΨһµÄÐòºÅ£¬Õâ¸öÐòºÅ³ÆΪ£¨18£©¡£ A£®×Ö½Ú B£®µØÖ· C£®±àºÅ D£®ÈÝÁ¿ 19£®ÏÂÁÐÊõÓïÖУ¬ÊôÓÚÏÔʾÆ÷ÐÔÄÜÖ¸±êµÄÊÇ£¨19£©¡£ A£®ËÙ¶È B£®¿É¿¿ÐÔ C£®·Ö±æÂÊ D£®¾«¶È 20£®À©Õ¹ÃûΪMP3µÄÎļþÊÇÒ»ÖÖ£¨20£©¡£ A£®Í¼ÏóÎļþ B£®ÉùÒôÎļþ C£®ÊÓƵÎļþ D£®¶¯»Îļþ 21£®°Ñ¼ÆËã»úÍøÂç·ÖΪÓÐÏßÍøºÍÎÞÏßÍøµÄ·ÖÀàÒÀ¾ÝÊÇ£¨21£©¡£ A£®ÍøÂçµÄµØÀíλÖà B£®ÍøÂçµÄ³É±¾¼Û¸ñ C£®ÍøÂçµÄÍØÆ˽ṹ D£®ÍøÂçµÄ´«Êä½éÖÊ 22£®ÓÃÓÚÃèÊöÄÚ´æÐÔÄÜÓÅÁÓµÄÁ½¸öÖØÒªÖ¸±êÊÇ£¨22£©¡£ A£®´æ´¢ÈÝÁ¿ºÍƽ¾ùÎÞ¹ÊÕϹ¤×÷ʱ¼ä B£®´æ´¢ÈÝÁ¿ºÍ´æȡʱ¼ä C£®Æ½¾ùÎÞ¹ÊÕϹ¤×÷ʱ¼äºÍÄÚ´æµÄ×Ö³¤ D£®´æ´¢ÈÝÁ¿ºÍƽ¾ùÐÞ¸´Ê±¼ä 23£®¼ÆËã»úµÄI/OÉ豸ֱ½Ó£¨23£©¡£ A£®ÓëÖ÷»úÏàÁ¬½Ó B£®ÓëCPUÏàÁ¬½Ó C£®ÓëI/O½Ó¿ÚÏàÁ¬½Ó D£®ÓëÖ÷´æ´¢Æ÷ÏàÁ¬½Ó 24£®Ò»¸öÎļþ·¾¶ÃûΪD:\\2\\USE\\a.doc£¬ÆäÖÐUSEÊÇÒ»¸ö£¨24£©¡£ A£®Îı¾Îļþ B£®¸ùĿ¼ C£®Â·¾¶ D£®Îļþ¼Ð 25£®Ò»ÕÅÈíÅÌÉÏ´æ´¢µÄÓÐЧÐÅÏ¢ÔÚÏÂÁÐÄÄÖÖÇé¿öÏ»ᶪʧ£¨25£©¡£ A£®·ÅÓÚÁãÏÂ10¶ÈµÄ·¿¼ä B£®·ÅÓÚ³éÌëÖаëÄêδÓà C£®·ÅÓÚÇ¿´Å³¡¸½½ü D£®¹ýº£¹Øʱ±»XÉäÏß¼àÊÓÒÇɨÃè ×¢£º±¾ÊÔ¾íÓõ½×ÔÓɱíXsda.DBF£º ˵Ã÷£º1¡¢Ñ§ºÅ¡¢ÐÕÃû¡¢ÐÔ±ð×Ö¶ÎΪ×Ö·ûÐÍ£»³öÉúÈÕÆÚΪÈÕÆÚÐÍ£»¿¼ÊԳɼ¨ÎªÊýÖµÐÍ£» 40 »ñ½±Ñ§½ðΪÂß¼ÐÍ¡£ 2¡¢±íÖй²ÓÐ7Ìõ¼Ç¼¡£ 3¡¢ÈÎÒ»Ìâ²»ÊÜÇ°ÃæÌâ¶Ô±íµÄÓ°Ïì¡£ ¶þ¡¢Visual Foxpro»ù´¡ÖªÊ¶ºÍ»ù±¾²Ù×÷£¨¹²25·Ö£¬Ã¿Ìâ1·Ö£© 1. ±í´ïʽ3*4%£¨2+1£©**2µÄÖµÊÇ[£¨1£©]¡£ A£®0 B£®1 C£®3 D£®12 2. ÏÂÁÐ[£¨2£©]³£Á¿ÔÚʹÓÃʱ²»ÐèÒª¼Ó¶¨½ç·û¡£ A£®ÊýÖµÐÍ B£®×Ö·ûÐÍ C£®Âß¼ÐÍ D£®ÈÕÆÚÐÍ 3. ÔÚVFP6.0ÖУ¬ÏÂÁйØÓÚ±äÁ¿µÄ˵·¨´íÎóµÄÊÇ[£¨3£©]¡£ A£® ±äÁ¿¿ÉÒÔ´æ´¢ÈÎÒâÊý¾ÝÀàÐÍ B£® ʹÓñäÁ¿Ê±£¬²»ÐèÒªÔÚ±äÁ¿ÃûÁ½²à¼Ó¶¨½ç·û C£® ×ֶαäÁ¿Ëæ×űíµÄ´ò¿ª¶øÔÚÄÚ´æÖд洢£¬Ëæ×űíµÄ¹Ø±ÕÔÚÄÚ´æÖÐÊÍ·Å D£® ÄÚ´æ±äÁ¿ÃûÓë×ֶαäÁ¿ÃûͬÃûʱ£¬ÄÚ´æ±äÁ¿±»ÓÅÏÈÒýÓà 4. ¶¨Òå±¾µØ±äÁ¿µÄÃüÁîÊÇ[£¨4£©]/ A£®LOAD B£®LOCATE C£®LOCAL D£®LOCK 5. ÏÂÁÐ[£¨5£©]º¯ÊýµÄÖµÊÇ×Ö·ûÐÍ¡£ A£® ROUND£¨£© B£®YEAR£¨£© C£®TIME£¨£© D£®FOUND£¨£© 6. ÏÂÁÐ[£¨6£©]º¯Êý¿ÉÒÔ²»¼Ó²ÎÊýÖ±½ÓʹÓᣠA£®STR£¨£© B£®UPPER£¨£© C£®DAY£¨£© D£®DATE£¨£© 7. ÔÚSET EXACT OFFÇé¿öÏ£¬ÏÂÁÐ[£¨7£©]±í´ïʽµÄÖµÊÇ.T.¡£ A£®¡±abc¡±>=¡±ab¡± B£®¡±abc¡±>¡±ab¡± C£®¡±abc¡±<¡±ab¡± D£®¡±ab¡±=¡±abc¡± 8. ±í´ïʽNOT ¡°ac¡±$¡±abc¡± AND MONTH({^2004/11/30}-30)=11 OR LEN(¡°ab ¡°-¡°ab¡±)#4 µÄÖµÊÇ[£¨8£©]£¨ÆäÖÐ ±íʾ¿Õ¸ñ×Ö·û£©¡£ A£®TRUE B£®FALSE C£®.T. D£®.F. 9. ÓÃÓÚÐ޸ıí½á¹¹µÄÃüÁîÊÇ[£¨9£©]¡£ A£®MODIFY STRUCTURE B£®LIST STRUCTURE C£®DISPLAY STRUCTURE D£®COPY STRUCTURE TO 10. ÏÂÁÐ[£¨10£©]·ûºÅÊÇ×¢ÊÍÓï¾äµÄ±êÖ¾·û¡£ A£®?? B£®&& C£®** D£®= = 11. ÏÂÁгÌÐòÓï¾ä½á¹¹´íÎóµÄÊÇ[£¨11£©]¡£ A£®IF¡ENDIF B£®DO CASE¡ENDDO C£®SCAN¡ENDSCAN D£®FOR¡ENDFOR 12. ÏÂÁÐ[£¨12£©]ÀàÐÍÎļþ²»ÄÜʹÓÃDOÃüÁîÀ´ÔËÐС£ A£®.CDX B£®.PRG C£®.MPR D£®.QPR 13. ÏÂÁÐ[£¨13£©]ÃüÁîÓï¾äºóÃæ¿ÉÒÔ¼ÓÌõ¼þ±í´ïʽ¡£ A£®ELSE B£®OTHERWISE C£®STEP D£®CASE 14. ÔÚ×Ó³ÌÐòÖÐÓÃÓÚ½ÓÊÕÖ÷³ÌÐò´«µÝ¹ýÀ´µÄ²ÎÊýµÄÓï¾äÊÇ[£¨14£©]¡£ A£®WITH B£®PARAMETERS C£®RETURN D£®PROCEDURE 41 15. ÏÂÁÐÒƶ¯¼Ç¼ָÕëµÄÃüÁîÓ÷¨ÕýÈ·µÄÊÇ[£¨15£©]¡£ A£®SKIP TOP B£®GO ¨C1 C£®GOTO BOF D£®SKIP ¨C1 16. ÏÂÁÐÃüÁî¸ñʽÕýÈ·µÄÊÇ[£¨16£©]¡£ A£® LIST FOR ÐÔ±ð=¡±Å®¡± ÐÕÃû£¬ÐÔ±ðOFF B£® DELETE REST 4 WHILE ÐÔ±ð=¡±Å®¡± C£® REPLACE NEXT ÐÔ±ð WITH ÐÔ±ð=¡±Å®¡± D£® RECALL ALL FOR ÐÔ±ð=¡±Å®¡± FIELDS ÐÕÃû£¬ÐÔ±ð 17. ʹÓø´ºÏË÷ÒýÎļþÖÐË÷ÒýºÅΪ1µÄË÷Òý£¬ÃüÁîÊÇ[£¨17£©]¡£ A£®SET ORDER TO B£®SET ORDER TO 1 C£®SET INDEX TO D£®SET INDEX TO 1 18. ÏÂÁÐ[£¨18£©]²»ÄÜ°üº¬ÔÚÊý¾Ý¿âÖС£ A£®±í B£®±í¼ä¹Øϵ C£®±íµ¥ D£®ÊÓͼ 19. µ±[£¨19£©]ʱ£¬»á´¥·¢Îı¾¿ò£¨Text£©¿Ø¼þµÄInterActiveChangeʼþ¡£ A£® µã»÷Îı¾¿ò£¬¹â±êÔÚÎı¾¿òÄÚÉÁ˸ B£® Ë«»÷Îı¾¿òÖеÄÄÚÈÝ£¬Ê¹ÄÚÈÝÈ«²¿Ñ¡ÖÐ C£® È«²¿Ñ¡ÖÐÎı¾¿òÖеÄÄÚÈÝ£¬È»ºó°´ÏÂDEL¼ü D£® ÓÒ¼üµã»÷Îı¾¿ò 20. ÏÂÁÐ[£¨20£©]ÊôÐÔµÄÊý¾ÝÀàÐͲ»ÊÇÊýÖµÐÍ¡£ A£®Increment B£®Interval C£®ButtonCount D£®LineSlant 21. ×éºÏ¿ò¿Ø¼þ£¨Combo£©²»¾ßÓÐ[£¨21£©]ÊôÐÔ¡£ A£®Caption B£®Rowsource C£®ControlSource D£®Style 22. ÏÂÁÐ[£¨22£©]¿Ø¼þ²»¾ßÓÐVisibleÊôÐÔ¡£ A£®±íµ¥£¨Form£© B£®ÃüÁî°´Å¥£¨CommandButton£© C£®¼ÆʱÆ÷£¨Timer£© D£®±í¸ñ£¨Grid£© 23. ÏÂÁйØÓڿؼþµÄ˵·¨´íÎóµÄÊÇ[£¨23£©]¡£ A£® Îı¾¿ò£¨Text£©²»ÄܽÓÊÕ¶àÐÐ×Ö·û B£® ΢µ÷¿ò£¨Spinner£©Ö»ÄܽÓÊÕÊýÖµÐ͵ÄÊý¾Ý C£® Ñ¡Ïî°´Å¥×飨OptionGroup£©µÄValueÊôÐԼȿÉÒÔÊÇÊýÖµÐÍÒ²¿ÉÒÔÊÇÂß¼ÐÍ D£® ¸´Ñ¡¿ò£¨Check£©¼ÈÓÐCaptionÊôÐÔÓÖÓÐValueÊôÐÔ 24. ÏÂÁÐ[£¨24£©]²»ÊôÓÚ±íµ¥¿Ø¼þĬÈϵķ½·¨Ê¼þ¡£ A£®Show B£®Hide C£®Release D£®Close 25. ÔËÐб¨±íÎļþR1.FRE£¬ÃüÁî¸ñʽÕýÈ·µÄÊÇ[£¨25£©]¡£ A£®DO FORM R1 B£®REPORT FORM R1 C£®DO R1.FRX D£®REPORT R1 42 Èý¡¢ÔĶÁÏÂÁгÌÐò£¬Ð´³öÔËÐнá¹û£¨18·Ö£¬Ã¿Ìâ3·Ö£© 1. *MAIN.PRG A=1 B=¡±A¡± C=3 DO SUB ?A,&B *SUB.PRG PRIVATE A,C A=2 B=¡±C¡± C=4 ? A,&B 2. S=0 FOR N=1 TO 10 STEP 2 N=N+1 IF N<6 S=S+N ELSE EXIT ENDIF ENDFOR ?S,N 3. USE XSDA INDEX ON ÐÔ±ð+STR(¿¼ÊԳɼ¨£¬3) TAG SY1 COUNT TO N FOR ÐÔ±ð=¡±ÄС± GO TOP CJ1=¿¼ÊԳɼ¨ SKIP N CJ2=¿¼ÊԳɼ¨ USE £¿CJ1£¬CJ2 4. STORE 0 TO A,B,C 43 USE XSDA A=RECNO( ) GO BOTTOM IF EOF( ) B=RECNO( ) ENDIF GO TOP IF BOF( ) C=RECNO( ) ENDIF USE ?A,B,C 5. ÈçͼһËùʾ£¬×Ö·û¡°cmue¡±ËùÔÚÎı¾¿òΪTEXT1£¬×Ö·û¡°rtpo¡±ËùÔÚÎı¾¿òΪ TEXT2£¬ÓÒ²àÎı¾¿òΪTEXT3£¬°´Å¥¡°=>¡±µÄClickʼþÖдúÂëÈçÏ£º A=TRIM(THISFORM.TEXT1.VALUE) B=TRIM(THISFORM.TEXT2.VALUE) C=¡± ¡± FOR N=1 TO LEN(A) C=C+SUBS(A,N,1) C=C+SUBS(B,LEN(B)-N+1,1) ENDFOR THISFORM.TEXT3.VALUE=C ͼһ ±£³Ö±íµ¥Öи÷¿Ø¼þÄÚÈݲ»±ä£¬Ð´³öµã»÷¡°=>¡±°´Å¥ºó£¬Îı¾¿òTEXT3ÖÐÏÔʾµÄÄÚÈÝ¡£ 6. Èçͼ¶þËùʾ£¬Êý×Ö5ËùÔÚÎı¾¿òΪTEXT1£¬Êý×Ö-2ËùÔÚÎı¾¿òΪTEXT2£¬Êý ×Ö0ËùÔÚÎı¾¿òΪTEXT3£¬ÃüÁî°´Å¥¡°=>¡±µÄClickʼþÖеĴúÂëÈçÏ£º IF THISFORM.TEXT3.VALUE=0 THISFORM.TEXT3.VALUE=THISFORM.TEXT2.VALUE*; THISFORM.TEXT1.VALUE ELSE THISFORM.TEXT3.VALUE=ABS(THISFORM.TEXT3.VALUE)-; THISFORM.TEXT2.VALUE-THISFORM.TEXT1.VALUE ENDIF 44 ͼ¶þ ±£³Ö¸÷¿Ø¼þÖÐÊýÖµ²»±ä£¬·Ö±ðд³öµÚ1´ÎºÍµÚ4´Îµã»÷¡°=>¡±°´Å¥ºó£¬Îı¾¿òTEXT3ÖÐÏÔʾµÄÄÚÈÝ¡£ ËÄ¡¢´úÂë¡¢³ÌÐòÌî¿Õ£¬Ê¹³ÌÐòÍêÕû¡¢ÕýÈ·£¨¹²24·Ö£¬Ã¿¿Õ2·Ö£© 1. ¼ÆËãXSDA±íÖС°¿¼ÊԳɼ¨¡±µÄƽ¾ù·Ö£¬½«¡°¿¼ÊԳɼ¨¡±ÔÚ60·ÖÒÔϲ¢ÇÒ´ó ÓÚµÈÓÚƽ¾ù·Ö-20µÄͬѧµÄ¡°¿¼ÊԳɼ¨¡±¸ÄΪ60£¬Í¬Ê±Èá°¿¼ÊԳɼ¨¡±´óÓÚµÈÓÚƽ¾ù·Ö+5µÄͬѧ»ñµÃ½±Ñ§½ð£¨»ñ½±Ñ§½ð=.T.£©¡£ USE XSDA AVER[£¨1£©] SCAN IF ¿¼ÊԳɼ¨<60 AND ¿¼ÊԳɼ¨>=PJF-20 [£¨2£©] HJXJ=.F. ELSE KSCJ=¿¼ÊԳɼ¨ IF [£¨3£©] HJXJ=.T. ELSE HJXJ=.F. ENDIF ENDIF REPL ¿¼ÊԳɼ¨ WITH KSCJ£¬»ñ½±Ñ§½ð WITH HJXJ ENDSCAN USE 2. ͨ¹ýÑ»·³ÌÐò¼ÆËã1£¡+23+4£¡+56+7£¡+89 S=0 T=1 FOR N=1 TO 9 T=[£¨4£©] IF N%3=[£¨5£©] S=S+T ELSE IF N%3=[£¨6£©] S=S+N**£¨N+1£© ENDIF ENDIF ENDFOR £¿S 3. ÈçͼÈýËùʾ£¬¸ù¾ÝÑ¡Ïî°´Å¥×飨OPTIONGGROUP1£©µÄÑ¡ÏîÀ´²éѯXSDA±í 45 ÖеÄѧºÅ»òÐÕÃû£¬Èç¹ûÕÒµ½·ûºÏÌõ¼þµÄ¼Ç¼ÔòÓÒ²àÎı¾¿ò£¨TEXT1£©ÖÐÏÔʾ¸ÃͬѧÊÇ·ñ»ñµÃ½±Ñ§½ð£»Èç¹ûûÓÐÕÒµ½ÔòÏÔʾ¡°Ã»ÓÐÕÒµ½¡±¡££¨±íµ¥ÖеÄ2¸ö×éºÏ¿òÓÉÉÏÖÁÏ·ֱðÊÇCOMBO1ºÍCOMBO2£¬ÔÚÊý¾Ý»·¾³ÖÐÒÑÌí¼Ó±íXSDA.DBF£© ͼÈý ͼÈý Ö÷ÒªÊôÐÔÉèÖÃÈçÏ£º THISFORM.COMBO1.ROWSOURCE=¡±XSDA .ѧºÅ¡± THISFORM.COMBO1.ROWSOURCETYPE=6 THISFORM.COMBO2.ROWSOURCE=¡±XSDA .ÐÕÃû¡± THISFORM.COMBO2.ROWSOURCETYPE=6 THISFORM.OPTIONGROUP1.VALUE=1 ¡°²éѯ¡±°´Å¥µÄClickʼþ´úÂëÈçÏ£º IF[£¨7£©] LOCATE FOR ѧºÅ=THISFORM.COMBO1.VALUE ELSE LOCATE FOR ÐÕÃû=THISFORM.COMBO2.VALUE ENDIF IF[£¨8£©] THISFORM.TEXT1.VALUE=¡±Ã»ÓÐÕÒµ½¡± ELSE IF[£¨9£©] THISFORM.TEXT1.VALUE=¡±¸Ãͬѧ»ñµÃ½±Ñ§½ð¡± ELSE THISFORM.TEXT1.VALUE=¡±¸ÃͬѧûÓлñµÃ½±Ñ§½ð¡± ENDIF ENDIF 4. ÈçͼËÄËùʾ£¬ÀûÓüÆʱÆ÷¿Ø¼þTIMER1½«±íµ¥ÖеľØÐΣ¨SHAPE1£©Öð½¥±äΪ 46 Ô²ÐΣ¨Ã¿¸ô1ÃëÖӱ仯1´Î£©£¬Í¬Ê±ÔÚÎı¾¿ò£¨TEXT1£©ÖÐÏÔʾµ±Ç°ÒѾ¼ÆʱµÄÃëÊý£¬Èç¹ûÃëÊý´óÓÚµÈÓÚ99ÔòÍ£Ö¹¼Æʱ¡£ Ö÷ÒªÊôÐÔÉèÖÃÈçÏ£º THISFORM.SHAPE1.CURVATURE=0 THISFORM.TIMER1.INTERVAL=[£¨10£©] THISFORM.TIMER1.ENABLED=.T. ¼ÆʱÆ÷¿Ø¼þµÄTIMERʼþ´úÂëÈçÏ£º IF THISFORM.TEXT1.VALUE>=99 [£¨11£©] ELSE ͼËÄ THISFORM.SHAPE1.CURVATURE=THISFORM.SHAPE1.CURVATURE+1 [£¨12£©] ENDIF Îå¡¢´úÂë¡¢³ÌÐò¸Ä´í£¨8·Ö£¬Ã¿´í2·Ö£© 1. Çó1~200Ö®¼ä¸öλÊý×ÖÊÇ4»ò7µÄÕûÊýÖ®ºÍ¡£ S=0 FOR N=1 TO 200 A=LTRIM(STR(N)) A=SUBS(A,1,LEN(A)) B=VAL(A) IF B=4 OR B=7 S=S+B ENDIF ENDFOR ?S ´ËÌâÓÐÁ½´¦´íÎó£¬ÇëÕÒ³ö²¢¸ÄÕý¡£ 2. ÈçͼÎåÁбí¿ò£¨LIST1£©ÖÐÓÐ2¸öÑ¡Ïµ±µã»÷¡°¸´ÖÆ¡±°´Å¥Ê±£¬½«XSDA±í µÄ±í½á¹¹»ò±í¼Ç¼¸´ÖƵ½ÓÉÎı¾¿ò£¨TEXT1£©ÌṩµÄÎļþÖÐ Ö÷ÒªÊôÐÔÉèÖÃÈçÏ£º THISFORM . LIST1.ROWSOURCETYPE=6 THISFORM . LIST1.ROWSOURCE=¡±1.¸´ÖƱí½á¹¹£¬2.¸´ÖƱí¼Ç¼¡± ¡°¸´ÖÆ¡°°´Å¥µÄClickʼþ´úÂëÈçÏ£º USE XSDA 47 IF SUBS(THISFORM.LIST1.VALUE,1,1)=¡±1¡± COPY STRU TO TRIM(THISFORM.TEXT1.VALUE) ELSE COPY FILE TO TRIM(THISFORM.TEXT1.VALUE) ENDIF USE ͼÎå ´ËÌâÓÐÁ½´¦´íÎó£¬ÇëÕÒ³ö²¢¸ÄÕý¡£ 48 2004Äê11ÔµÄVFPÊÔÌâ´ð°¸£º Ò»¡¢ 1£®B 2£®C 3£®D 4£®C 5£®C 6£®A 7£®A 8£®B 9£®A 10£®A 11£®C 12£®A 13£®C 14£®B 15£®D 16£®D 17£®B 18£®B 19£®C 20£®B 21£®D 22£®B 23£®C 24£®D 25£®C ¶þ¡¢ 1£®C 2£®A 3£®D 4£®C 5£®C 6£®D 7£®A 8£®C 9£®A 10£®B 11£®B 12£®A 13£®D 14£®B 15£®D 16£®D 17£®D 18£®C 19£®C 20£®D 21£®A 22£®C 23£®B 24£®D 25£®B Èý¡¢ 1£®2 4 1 3 2£®7 8 3£®59 53 4£®1 0 0 5£®computer 6£®µÚÒ»´Î£º-10 µÚ¶þ´Î£º1 ËÄ¡¢ 1£®£¨1£©¿¼ÊԳɼ¨ TO PJF £¨2£©KSCJ=60 £¨3£©KSCJ>=PJF+5 2£®£¨4£©T*N £¨5£©1 £¨6£©2 3£®£¨7£©THISFORM.COMBO2.LISTINDEX = 0 £¨8£©NOT FOUND() £¨9£©»ñ½±Ñ§½ð=.T. 4£®£¨10£©1000 £¨11£©THISFORM.TIMER1.ENABLED=.F. £¨12£©THISFORM.REFRESH Îå¡¢ 1£® µÚ4ÐиÄΪA=RIGHT£¨A£¬1£© µÚ7ÐиÄΪS=S+N 49