Database °æ (¾«»ªÇø)
·¢ÐÅÈË: mengy (LEAR DLLS ÃüÁîʱ£¬½«´ÓÄÚ´æÖÐÇå³ý), ÐÅÇø: Database
±ê Ìâ: Visual Foxpro¼¼ÇÉ̸ÂÛ¼¯£¨1£
·¢ÐÅÕ¾: ¹þ¹¤´ó×϶¡Ïã (2000Äê12ÔÂ06ÈÕ20:12:10 ÐÇÆÚÈý), Õ¾ÄÚÐżþ
Visual Foxpro¼¼ÇÉ̸ÂÛ¼¯£¨1£©
±¾Ì¸ÂÛ¼¯µÄÓÐЩ¼¼ÇÉ¿ÉÄܲ¢²»ÄÜʵÐУ¬µ«´ó¼Ò¿É´Ó¸÷È˵Ä̸ÂÛÖз¢ÏÖһЩ±à³Ì
µÄ˼·£¬¶Ô×Ô¼ºµÄÉè¼Æ˼ÏëÒ²ÊÇÓаïÖúµÄ£¡
1¡¢¸÷λ´óϺ£ºÎÒÔÚʹÓÃÖÐÎÄ VFP 5.0 ä¯ÀÀÊý¾Ý¿âʱ£¬²»ÂÛÊÇÓà Browse¡¢Edit»¹
ÊÇ SQL ²éѯ£¬¶¼»á×Ô¶¯´ò¿ªÖÐÎÄÊäÈë·¨£¬¶øÎÒÓÖÕÒ²»µ½½â¾öµÄ°ì·¨¡£ÓÐÖªµÀ½â¾ö
°ì·¨µÄ¸ßÊÖ£¬Çë¶à¶à´Í½Ì£¬²»Ê¤¸Ð¼¤Ö®ÖÁ£¡
´ð£ºÔÚ³ÌÐòÖпÉÒÔÕâÑù¿ØÖÆ£º
IMESTATUS(0) --- ¹Ø±Õ
IMESTATUS(1) --- ´ò¿ª
²¹³ä£ºÆäʵ¿ÉÒÔÓÐÒ»¸öºÜ·½±ãµÄ°ì·¨£¬¾ÍÊÇ£º½øÈëVFPϵͳºó£¬Ñ¡Ôñ¡°Ñ¡Ï²Ëµ¥
£¬ÔÚ¡°³£¹æ¡±Ñ¡ÏÖÐÓÐÒ»¡°ä¯ÀÀʱ´ò¿ªIME¿Ø¼þ¡±µÄÑ¡Ôñ£¬²»°ÑËü´ò¹´¾Í¿ÉÒÔ½â
¾öÎÊÌâÁË£¡^ - ^
¡¡
2¡¢ÔÚVFPÖÐÈçºÎµÃÖªWIN95µÄ°²×°Ä¿Â¼£¿
´ð£ºÓÐÁ½ÖÖ·½·¨£º
1.ÓÃhome()º¯Êý£¬¼òµ¥·½±ã£¬µ«ÐèÔÚ±àÒë³ÉEXEºó¶ÀÁ¢Ê¹ÓÃʱÓã¬ÔÚÉè¼Æʱhome()
·µ»ØµÄÊÇvfpÆô¶¯Ä¿Â¼¡£
2.ÓÃWin32API£¬¸´ÔÓÄÑÓÃÈ磺
DECLARE INTEGER RegOpenKeyEx IN Win32API INTEGER nKEY,;
STRING @cSubKey,INTEGER nReserved,INTEGER nAccessMask,;
INTEGER @nResult
¡¡
3¡¢ÎÒÔÚÒ»¸ö±íµ¥Àïµ÷ÓÃÁËÁíÒ»¸ö±íµ¥£¬ÎÒÏë´Ó±»µ÷ÓÃ±íµ¥Öзµ»ØÒ»¸ö²ÎÊýÖµ¸øµ÷
ÓÃ±íµ¥£¬¸ÃÔõô×ö£¿ ÎÒÔÚµ÷ÓÃÀﶨÒåÁËpublic num ,ÔÚ±»µ÷ÓÃʱ¸Ä±äÁËnumµÄÖµ£¬
È´Óò»ÉÏ£¬ÎªÊ²Ã´ £¿ µ÷ÓóÌÐòÈçÏ£º
public num
num=1
do form aaa.scx ***ÆäÖÐÎÒ¸ønum ÖØи³ÖµÁË£¬µ±È»²»ÊÇ 1
wait window num
go num
thisform.refresh
wait window ÏÔʾµÄÖµÈÔÊÇ 1 ¡£
´ð£º×î¼òµ¥µÄ·½·¨£ºÔÚ±»µ÷ÓÃµÄ±íµ¥ÀﶨÒå±äÁ¿£¡
¡¡
4¡¢ÓÃVPF×öÒ»¸ö±íµ¥£¬Éú³É.EXEÎļþ£¬ÔÚVPFÀïÔËÐкÜÕý³££¬¿ÉÍ˳ö£¬ÔÚWINÏÂÔËÐÐ
·¢ÏÖ±íµ¥Ò»ÉÁ¶ø¹ý£¬²»ÖªÊÇʲôÔÒò???
´ð£º×öÒ»¸öÖ÷³ÌÐò£¨Èç MAIN.PRG£©£¬ÄÚÈÝΪ£º
DO FROM <formname>
READ EVENT
ÔÚÍ˳ö±íµ¥µÄ´úÂë×îºó¼ÓÉÏ£º
CLEAR ENENT
ÔÚÏîÄ¿¹ÜÀíÆ÷ÖÐÉèÖÃMAIN.PRGΪÖ÷³ÌÐò
Á¬±àΪ.EXE Îļþ¼´¿É¡£
¡¡
5¡¢ÎÒÔÚÉè¼Æ±¨±íʱÔÚҳβÉèÖÃsum()º¯Êý,µ«ÔÚÔ¤ÀÀºÍÔËÐÐʱ³öÏÖ"ÕÒ²»µ½sum.
prg"µÄÇé¿ö,ÎÒÔøÔÚÃüÁî´°¿ÚÊÔ¹ýÕâÒ»º¯ÊýÈ´¿ÉÒÔÖ´ÐÐ,ÇëÎʸÃÈçºÎ´¦Àí?
´ð£ºÑ¡Ôñ×Ö¶ÎÃû£¬°´ÊôÐÔ£¬Ñ¡¼ÆË㣬ÔÙÑ¡sumº¯Êýok
¡¡
6¡¢ÎÒÔÚʹÓÃVFP 6¡£0ʱ½«Ô´³ÌÐòÁ¬±à³É¿ÉÖ´ÐÐÎļþ£¬ÔËÐиÃÎļþ×ÜÒª³öÏÖÄÇÌÖÑá
µÄ¹¤¾ßÀ¸¡££¨ÎÒÔÚ½øÐÐÁ¬±àʱ£¬±à³Ì»·¾³ÖÐÒѾȡÏûÁ˹¤¾ßÀ¸ÏÔʾ£©²»Öª¸÷λ¸ßÊÖ
ÄÜ·ñ¸øÓèÖ¸µã¡£
´ð: ÎÒÓÃVFP5.0ʱҲÓöµ½¹ýÀàËÆÇé¿ö£¬±àÒëºóµÄ¿ÉÖ´ÐÐÎļþÔËÐÐʱÎÞ¹¤¾ßÀ¸£¬Ä³Ò»
ÌìÈ´·¢ÏÖËùÓÐÓÃVFP5.0±àÒëµÄ³ÌÐò¶¼ÄªÃûÆäÃîµØ³öÏÖÁ˹¤¾ßÀ¸£¬¾ÃþË÷·¢ÏÖ£¬Ö»Òª
½«¹¤¾ßÀ¸ÓÃÊó±êÍϷŵ½ÁíһλÖã¬ÔÚÓÒ¼üµ¥»÷¹¤¾ßÀ¸£¬Ñ¡Ôñ¹Ø±Õ,Ö®ºó²»µ«¸Ã³ÌÐò
µÄ¹¤¾ßÀ¸Ïûʧ£¬¶øÇÒËùÓÐVFP³ÌÐòµÄ¹¤¾ßÀ¸Ò²²»»á³öÏÖÁË£¬ÕæÆæ¹Ö¡£²»ÖªVFP6.0ÊÇ
·ñÒ²ÊÇÕâÑù¡£
¡¡
7¡¢±àÒëÁËÒ»¸ö³ÌÐò,ÔËÐÐʱFOXPROÖ÷´°¿ÚûÓÐÕ¼ÂúÕû¸öÆÁÄ»,ÈçºÎʹÖ÷´°¿ÚÒ»ÔËÐÐ
¾Í×î´ó»¯,ÄÄλ¸ßÊÖ°ïæһÏÂ?
´ð£º°Ñ±àÒëÁ˵ijÌÐòÔÚWindowsÊǽ¨Á¢Ò»¸ö¿ì½Ý¼ü£¬È»ºóÐÞ¸ÄÆäÊôÐÔ£¬Ñ¡Ôñ¡°×î´ó
»¯¡±¾Í¿ÉÒÔÁË¡£
Сºü²¹³ä£ºÈôʹÓÃÁËϵͳ´°¿Ú£¬¿ÉÒÔÕâÑù×ö£ºSCREEN.WINDOWSTATE=2 £¬Èô²»Ê¹ÓÃ
ϵͳ´°¿Ú£¬¿ÉÒÔÉÏÃæµÄ´úÂë¸ÄΪ£ºÖ÷±íµ¥Ãû.WINDOWSTATE=2¼´¿É¡£
¡¡
8¡¢ÎÒ°Ñvfp5.0±àÒëºóµÄÒ»exeÎļþ¿½ÈëÒ»ÔÚδװvfp5.0µÄ¼ÆËã»ú²»ÄÜÔËÐÐ,ÊÇ·ñȱ
ÉÙ¶¯Ì¬Á´½ÓÎļþ?
´ð£º ´ÓÒ»¸öÏîÄ¿ÖУ¬¿ÉÒÔ½¨Á¢Ó¦ÓóÌÐòÎļþ (.app) »òÕß¿ÉÖ´ÐÐÎļþ(.exe)¡£Èç
¹ûÓû§ÓÐÒ»¸öÍêÕûµÄ Visual FoxPro ¸±±¾£¬Ôò¿ÉÒÔÔËÐÐÒ»¸ö .app Îļþ¡£ÁíÍâÒ»
¸öÑ¡Ôñ·½°¸Êǽ¨Á¢Ò»¸ö¿ÉÖ´ÐÐÎļþ¡£¸Ã¿ÉÖ´ÐÐÎļþÐèÒªºÍÁ½¸ö Visual FoxPro ¶¯
̬Á¬½Ó¿â (Vfp5r.dll ºÍ Vfp5enu.dll) Á¬½Ó£¬ÕâÁ½¸ö¿âºÍÓ¦ÓóÌÐòÒ»Æð¹¹³ÉÁË
Visual FoxPro ËùÐèµÄÍêÕûÔËÐл·¾³¡£VFPxxx.DLLÖ¸¶¨ÓÃÓÚÓ¦ÓóÌÐò¿ª·¢µÄµØÇø°æ
±¾¡£
¡¡
9¡¢Óà DO FORM ºÍ READ EVENTS ÔÚ±íµ¥ÀïÔËÐÐÁíÒ»±íµ¥,µ«±àÒë³É .EXEºó,ÔËÐÐʱ
»áÔËÐÐREAD EVENTS ºóÃæµÄÃüÁî(ÔÚFOXPROÀï¾Í²»»á),Çë¸ßÊÖÖ¸½Ì.
´ð£º¡¡ºÃÏñREAD EVENTS²»ÄÜÔÚÒ»‚€.EXEÀïÖظ´Ê¹Óá£
¡¡
10¡¢ÔÚCOMBOÖÐÔõÑùÀûÓ÷½Ïò¼ü£¨DOWN£©Ä£ÄâÊó±êµã°´COMBOʱDOWNCLICKµÄʼþ£¿
´ð£ºÔÚKEYPRESSʼþÖмÓÈ룺
LPARAMETERS nKeyCode, nShiftAltCtrl
if nkeycode=24 &&down key value
THIS.DOWNCLICK
endif
¡¡
11¡¢ÎÒÓÃVFP3.0×öÁËÒ»¸ö±íµ¥£¬µ«×ÜÊDz»¹»´ó¡£ÎÒÏë×öÒ»¸öÈ«ÆÁ´óСµÄ±íµ¥£¬¸ÃÓÃ
ʲô·½·¨£¿
´ð£ºÐÞ¸ÄÊôÐÔ:WindowMode=2
¡¡
12¡¢ÎÒÕýÔÚÓÃVFP×öÒ»¶«¶«£¬Êý¾Ý¿âMESS¡£DBFÔÚNT·þÎñÆ÷ÉÏ¡£ÇëÎÊÈçºÎ±à³Ì£¬ÈôË
³ÌÐòÔÚ¸÷¹¤×÷Õ¾ÉÏ¿ÉÒÔ¶ÔÊý¾Ý¿â½øÐÐÔö¡¢É¾¡¢¸ÄµÈ²Ù×÷£¿ÔÚµ¥»úÉÏÎһᵫ£¬Êý¾Ý¿â
·ÅÔÚSERVERÉÏÎҾͲ»ÖªÈçºÎ·ÃÎÊÁË¡£Íû¸÷λָµã¡£
´ð£ºµ±Ò»Óû§Óû¶ÔÊý¾Ý¿â½øÐвÙ×÷ʱ,Ó¦¾ß±¸µ±Ê±Êý¾Ý¿âûÓб»ÆäËûÓû§·ÃÎÊ,¶ø½ø
ÐÐÓйزÙ×÷ʱ,ÒªÇó½«Êý¾Ý¿âתΪ²Ù×÷Óû§¶ÀÕ¼·½Ê½µÈµÈ,×ÜÖ®ÔÚµ«»úʱʮ·ÖÈÝÒ×Íê
³ÉµÄ²Ù×÷,ÔÚ¶àÓû§»·¾³ÖÐʵÏÖ,Óкܶ༼ÇÉ.
¡¡
13¡¢ÔÚÊý¾Ý¿â±íÖÐappeÒ»Ìõ¼Ç¼,»á³öÏÖË÷Òý¹Ø¼ü×Ö²»Î¨Ò»µÄÌáʾ,ÈçºÎ½â¾ö?
´ð£º1¡¢ÄúµÄ±íµÄÖ÷¹Ø¼ü×Ö×Ö¶ÎÒѾÓÐÒ»¿Õ°×ÖµµÄÐС£
2¡¢½¨ÒéµÃµ½ÐòÁбíµÄÐòÁкÅm_myuniqueºó£¬²ÉÓãº
insert into (mydbf) (myunique) values (m_myunique)
3¡¢Èç¹ûÓпÉÄÜɾ³ý¼Ç¼£¬²¢ÀûÓÃÒѾɾ³ýµÄÐòÁкţ¬½¨ÒéÌí¼ÓË÷ÒýÌõ¼þ£º
not dele()
¡¡
14¡¢±¾ÈËÓöµ½Ò»¸öÎÊÌâ:VFP5.0µÄ±¨±í´òӡʱ,´òÓ¡Ò»´Î,´òÓ¡»ú¾Í×Ô¶¯»»Ö½,ÇëÎʸ÷
λ¸ßÊÖ,ÈçºÎÈÃֽͣס
´ð£ºÈçÏ°취²»ÊǺܺ㬵«ÎÒ¾ÍÊÇÓÃËüÀ´ÊµÏÖʵʱϵͳ¼Ç¼¡£Çë²Î¿¼£º
1¡¢ÀûÓÃÒÔÏ´úÂëÉú³ÉÁÙʱÎļþ(_PRNFILE)
SET TEXTMERGE ON
SET TEXTMERGE NOSHOW
SET TEXTMERGE TO (_PRNFILE)
\ <<PADC('©°', 2)>>
\\<<REPL('©¤',20)>>
\ <<PADc(alltrim(ADDRESS),30)>>
\ <<CHR(12)>>
WAIT CLEAR
SET TEXTMERGE OFF
SET TEXTMERGE TO
2¡¢RUN /N7 PRGS\COPYFILE.BAT (_PRNFILE)
3¡¢COPYFILE.BATÎļþÈçÏ£º
COPY %1 PRN
¡¡
15¡¢ºÎ½«Ò»¸öÊý¾Ý±í¶¯Ì¬µÄ¼ÓÈëÊý¾Ý»·¾³ÖÐ?
´ð£ºTHISFORM.DataEnvironment.ADDOBJECT('mydbf','CURSOR')
¡¡
16¡¢ÈçºÎµÃµ½´°¿ÚµÄ¾ä±ú£¿
´ð£ºDECLARE INTEGER GetActiveWindow IN win32api
THISFORM.FOXHWND=str(GetActiveWindow())
¡¡
17¡¢ÓÐÁ½ÕÅ±íµ¥´¦ÀíͬһÊý¾Ý¿â£¬ÓÉÒ»¸ö±íµ¥µ÷ÓÃÁíÒ»¸ö±íµ¥£¬ÈçºÎ±£³ÖÁ½±íµ¥Í¬
²½Ë¢Ð£¿
´ð£ºÓÃһʱÖӿؼþ£¬¹ýÒ»¶Îʱ¼ä¾Í±È½Ï±íµ¥ÖеÄÊý¾ÝÓëÊý¾Ý¿âÖеÄÊý¾ÝÊÇ·ñ»¹Í¬£¬
È粻ͬÔòÖØÐÂдÈë
¡¡
18¡¢ÔÚVFPÖÐÈçºÎÅжÏÈíÅÌÊÇ·ñ²åºÃ£¬ÊÇ·ñÓÐÕâÑùµÄº¯Êý£¿
´ð£º×î¼òµ¥µÄ·½·¨:
FILE("A:\NUL")
Сºü²¹³ä£ºÍ¬Àí£¬Ê¹ÓÃFILE£¨£©º¯Êý¿ÉÒÔÅжÏijһĿ¼ÊÇ·ñÒÑ´æÔÚ£¬È磺ÎÒÃÇÒªÅÐ
¶ÏC:\CARDÕâĿ¼ÊÇ·ñ´æÔÚ£¬¿ÉʹÓÃÃüÁî
£¿FILE("C:\CARD\NUL")
¡¡
19¡¢ µ±Ðè²éѯ»òͳ¼ÆijһÄêÁä¶ÎµÄÈËÔ±×ÊÁÏʱ,ÓÉÓÚÄêÁäÊÇËæʱ¼äµÝÔöµÄ,Èç¹ûÓÃ
ÊÖ¹¤»òÈ˹¤¸ÉÔ¤À´Ôö¼ÓÄêÁäÔòÊǼþ·Ç³£Âé·³µÄÊÂ,²»Öª´ó¼ÒÓкη½·¨ÄÜÈÃÊý¾Ý¿âÖÐ
µÄÄêÁä×ֶεÄÄêÁä×ÔÐеÝÔö?
´ð£º¿âÖв»Òª°ÑÄêÁä×÷Ϊ×Ö¶Î,ÄãÖ»ÒªµÇ¼ÇÈËÔ±µÄ³öÉúÄê·Ý¼´¿É.ÏÔʾʱ,ÈËÔ±µÄÄê
ÁäΪ
½ñÄêÓë³öÉúÄê·ÖÖ®²î.
¡¡
20¡¢ ÔÚ¿ª·¢»·¾³ÖÐûÎÊÌ⣬µ«±àÒë²¢°²×°µ½Áíһ̨»úÉϾͳöÎÊÌâÁË£¬ËµÕÒ²»µ½ÎÄ
¼þ¡£¶øÇÒÎÒŪ²»¶®VFP6ÖеÄÊÓͼ¶ÔÏóµÄSQL²ØÔÚÄÇÀû·¨Ïó²éѯÄÇÑù
´ð£ºÊÓͼ¶ÔÏóµÄSQL±£´æÔÚÊý¾Ý¿âÎļþÖÐ.ÄãÓÃuse Êý¾Ý¿â.dbc ¾Í¿É¿´µ½view¼Ç¼
Ïî.ÓÃÊÓͼǰҪÏÈ´ò¿ªÊý¾Ý¿â
¡¡
21¡¢Ôõô²ÅÄܽ«ÓÃACTIVE DOCUMENT×öµÄ³ÌÐòÁ¬µ½ÍøÒ³ÉÏ£¬ÐèÒªÔõôÉèÖã¿
´ð£ºActive Document ÊÇÔÚ Intranet ÉÏÅäÖà Visual FoxPro Ó¦ÓóÌÐòµÄÒ»ÖÖ·½
·¨¡£Äú¿ÉÒÔʹÓà Active Document ÔÚ Microsoft Internet Explorer ä¯ÀÀÆ÷ÖÐÖ±
½ÓÔËÐÐÓÉ Visual FoxPro ´´½¨µÄ°üº¬ÓÐ Visual FoxPro ´úÂëµÄ±íµ¥¡£ÔÚ
Visual Basic ÖУ¬Active Document Ö»ÊÇÉÔ×öÐÞ¸ÄµÄ±íµ¥£¬Ä¿µÄÊÇÖ§³Ö Internet
Explorer µÄÌØÐÔ¡£Visual FoxPro ÖÐµÄ Active Document ÓëÆäÉÔÓв»Í¬¡£
ActiveDoc ÀàÊÇÒ»¸ö·Ç¿ÉÊÓÀ࣬ËüµÄ¹¦ÄܸüÀàËÆÓÚÒ»ÖÖÓ¦ÓóÌÐò¶ÔÏó£¬ÓÃÓÚ´¦ÀíÔÚ
ä¯ÀÀÆ÷ÖÐÔËÐÐÒÑÓÐµÄ Visual FoxPro ±íµ¥ËùÐèµÄʼþ¡£Òò´Ë£¬²»ÐèҪת»»±íµ¥¡£
ÁíÍ⻹¼ÓÈëÁËһЩеÄÊôÐÔ£¬Èç±íµ¥µÄ ScrollBars ºÍ TitleBar ÊôÐÔ£¬ÒÔ±ã°üÈÝ
µ½ Internet Explorer ÖÐʱ¿ÉÒÔÓëÆäÓû§½çÃæ±ê×¼±£³ÖÒ»Ö¡£Ó¦¸Ã×¢Ò⣬ÔÚ
Internet Explorer ËùÔËÐеÄ
Visual FoxPro ActiveDoc Ö»ÊÇÒ»¸öÓ¦ÓóÌÐòÎļþ£¨.app£©£¬ËüÒ²¿ÉÒÔÔÚ
Visual FoxPro ÖÐÖ±½ÓÔËÐС£Ò²ÕýÓÉÓÚÕâ¸öÔÒò£¬ÐèÒªÓÐ Visual FoxPro µÄÔËÐÐ
ʱ¿Ì°æ±¾¡£Active Document ¸üÊÊÓÃÓÚ intranet »·¾³£¬ÕâÊÇÓÉÓÚ´ó¶àÊýÓû§ÊÇʹ
Óõ÷Öƽâµ÷Æ÷·ÃÎÊ Internet µÄ£¬Òò´ËÔÚ intranet »·¾³ÖжÔÏÂÔØ´óÐÍ Visual
FoxPro ÔËÐÐʱ¿ÌÎļþµÄÏÞÖÆÒª¿íËɵöࡣֵµÃÇìÐÒµÄÊÇ£¬ÔËÐÐʱ¿ÌÎļþÖ»ÐèÏÂÔØ
Ò»´Î¡£
¡¡
22¡¢ÎÒÓÐÊÔ¹ýʹÓÃCOPY TO ARRAY FIELDS FIELDNAMEºÍSCATTERÓëSCANµÄ×éºÏ.½á¹û
È´¶¼ÊÇÒ»Ñù:³ýµÚÒ»¸öÔªËØÏÔʾÕýÈ·Íâ,ÆäÓàµÄÀàÐÍ¡¢Öµ¶¼ÊÇ"L"¡¢".F."¡£ÇëÎʸÃÈç
ºÎ½â¾ö£¿
´ð£ºÒª½«¶à¸ö¼Ç¼»òÕû¸ö±í¸´ÖƵ½Êý×飬ÔòÖ¸¶¨Ò»¸ö¶þάÊý×é¡£Êý×éµÄÐÐÊý¾ÍÊÇÊý
×éÄÜÈÝÄɵļǼÊý£¬Êý×éµÄÁÐÊý¾ÍÊÇÊý×éÄÜÈÝÄɵÄ×Ö¶ÎÊý¡£
¡¡
23¡¢ÇëÎÊÈçºÎÔÚVFP3.0Öе÷ÓÃ16λDLL?ÎÒÓÃVisual C++ 1.5×Ô¶¨ÒåÁËÒ»¸ö DLL
char *MyFuc(char *a, char *b, char *c);
´ð£ºDECLARE STRING MyFuc IN MYFUC.DLL;
STRING A, STRING B, STRING C
¡¡
24¡¢VFP5ÖÐ,ÎÒÏë¿ØÖÆ report±íµÄÏîÄ¿,Ò²¾ÍÊÇ˵,ÎÒÏë ÔÚ¿â±íÖв»ÎªÁãµÄ×ֶδò
Ó¡³öÀ´, ¶øΪÁãµÄ×Ö¶Î,ÔÚ±¨±íÖв»´òÓ¡³öÀ´¡£
´ð£ºÔÚ¸Ã×Ö¶ÎÉÏ°´ÓÒ¼ü£¬Ñ¡È¡ÊôÐÔ¡ª¡ª´òÓ¡Ìõ¼þ¡ª¡ª×Ö¶Î>0¼´¿É¡£
¡¡
25¡¢ÎÒÓÃappe gene »òÊÇappe gene link¼ÓÈëÒ»‚€jpg™n°¸µ½General×Ö¶ÎÖÐ߀ÊÇ•þ
ºÜ´ó¡£
´ð£ºÎÒÏ룬foxproÀï¶ÔÓÚjpg¡¢gifµÈͼÐζ¼ÊÇÏÈת»¯ÎªÎ»Í¼À´´¦ÀíµÄ£¬ÕâÑùËü¿ÉÒÔ
Ê¡ÂÔÆäËûͼÐεĽâÊÍÆ÷¡£(Ö»ÊDz²â,ûÓÐ֤ʵ)±ÈÈ磬͸Ã÷µÄgifÎļþ£¬Í¸Ã÷µÄµØ·½
¶¼±ä³É»ÒÉ«ÁË¡£
¡¡
26¡¢ÇëÎÊÈçºÎÔÚVisual FoxproÖÐÓÉÒ»¸öFormµ÷ÓÃÁíÒ»¸öFormʱ£¬ÔFormÔÝÍ£Ö´ÐÐ
£¬Ö±ÖÁ±»µ÷ÓÃForm±»Release£¿
´ð£ºÇëÓÃÈçÏÂÃüÁ
do form ±íµ¥Ãû2 to ±äÁ¿Ãû
ÔÚ±íµ¥Ãû2µÄunloadÖÐ
retu .t.
ÕâÑù¾Í¿ÉÒÔÁË£¡
¡¡
27¡¢selectÓï¾äÉú³ÉµÄ½á¹ûÈçºÎ´æÈë×Ô¼ºµÄÊý¾Ý¿â£¿
´ð£ºÓÃÈçÏÂÓï¾ä:
select * from ... into array <Êý×éÃû>
sele (table name)
appen from array <Êý×éÃû>
¡¡
28¡¢ÎÒÓÃDELETEÃüÁîɾ³ý¼Ç¼µ¥Ã»Ö´ÐÐPACK£¬½øÐвéѯʱ£¬É¾³ýµÄ¼Ç¼ÈÔ²éѯµÃµ½
£¬ÇëÎÊÈçºÎ½â¾ö£¿
´ð£ºset dele on ¼´¿É
¡¡
29¡¢ÈçºÎÔÚVFPÖе÷ÓÃ"´ò¿ªÎļþ"¶Ô»°¿ò¼°"±£´æ","Áí´æ"¶Ô»°¿ò?
´ð£ºÊ¹ÓÃGETFILE()º¯Êý
¡¡
30¡¢ ÎÒ×öÒ»¸öÓÎÀÀ¹¦ÄÜµÄ±íµ¥.(Êý¾ÝÈ¡×ÔÈý¸ödbf),ÄÚÓÐÒ»±í¸ñ,Êý¾ÝÔ´À´×ÔÒ»¸ö
²éѯµÄ½á¹û.ÏÖÔÚµÄÎÊÌâÊÇ:ÿÔËÐÐÒ»´Î±íµ¥,ËüÏÈ×ö²éѯ,Ò»¶¨Òª°Ñ²éѯ½á¹ûµÄ´°¿Ú
¹ØµôÒÔºó²ÅÏÔʾÎÒËùÒªµÄÓÎÀÀ´°¿Ú
´ð£º½«²éѯ½á¹û´æ·ÅÔÚÒ»¸ödbfname.tmpÎļþÉÏÖÐ,ÔÙÔÚ×Ô¶¨Òå·½·¨ÖÐÓôúÂë°Ñ
dbfnam
e.tmpÓë±í¸ñÁªÏµÆðÀ´Ãë,OKÁË?!!!
Сºü²¹³ä£º´úÂë¿ÉÒÔÕâÑùд£º
sele ×ֶΠfrom Êý¾Ý±íÃû where Ìõ¼þ INTO CURSOR ABC
thisform.grid1.recordsource=¡°ABC¡±
thisform.grid1.recordsourcetype=2
31¡¢ÔÚ³ÌÐòÖУ¬ÎÒÏëÔÚGRID×örefresh²Ù×÷ºóÔÚµÚÒ»Ìõ¼Ç¼»ñµÃ½¹µã£¬ÈçºÎ×ö£¿
´ð£ººÜ¼òµ¥£¬ÔÚrefreshÇ°¼ÓÉÏ go top¾Í ok?!!!!!
¡¡
32¡¢ÎªÊ²Ã´ÔÚº¬ÓÐÒ³¿òµÄ±íµ¥ÖмÓÈëresizableÀàºó£¬×ÜÊÇÌáʾ³ö´í£¿
´ð£ºresizableÀàÊÇVFPËù´øµÄSOLUTION.VCX¿ÉÊÓÀà¿âÖеÄÒ»¸ö£¬ËüÌṩÁËÒ»¸öÔÚ³Ì
ÐòÔËÐÐÆÚ¼ä¸ü¸Ä±íµ¥³ß´çºó£¬×Ô¶¯¸ü¸Ä±íµ¥¿Ø¼þ´óСµÄ¼òµ¥·½·¨¡£µ«ÊǾʹÓ÷¢ÏÖ
£¬¸ÄÀàÖдæÔÚÑÏÖصÄBUG£¬Ö÷ÒªÏÖÏóÊÇ£ºµ±ÔÚ±íµ¥ÖмÓÈëÒ³¿ò£¬²¢ÔÚÒ³¿òÖмÓÈëÒ»
Щ¿Ø¼þºó£¬ÔËÐгÌÐòʱ£¬Ò»µ«¸ü¸Ä±íµ¥µÄ³ß´ç£¬¾Í»áÌáʾ³ö´í»òÕß´íÎóÒƶ¯Ò³¿òµÄ
λÖ᣾±¾Õ¾Ñо¿Ö®ºó·¢ÏÖ£¬ÔÀ´Î¢ÈíµÄ³ÌÐòÔ±ÔÚÉè¼Æ±¾ÀàµÄ³ÌÐòʱ£¬Ã»Óп¼Âǵ½
Ò³¿òÄڿؼþµÄTop/Left/Height/WidthµÄÖµÖ»ÊÇÏà¶ÔÒ³¿òµÄ´óС¶øÑԵģ¬¶ø°üÀ¨±í
µ¥ÖÐÒ³¿òÍâµÄÆäËû¿Ø¼þµÄTop/Left/Height/WidthµÄÖµÊÇÏà¶Ô±íµ¥¶øÑԵģ¬Òò´ËÔì
³ÉÁËÔÚÊÔͼ¸ü¸ÄÒ³¿òÄڿؼþ³ß´çºÍλÖÃʱµÄ´íÎó¡£
Ϊ´Ë±¾Õ¾ÒѶԸÃÀà½øÐÐÁËÐ޸ģ¬²¢ÔÚÈí¼þÏÂÔØÖиüÐÂÁËSOLUTION.VCXÎļþ¡£
¡¡
33¡¢ÑùÔÚVFPÖÐÈÃÓû§½¨Á¢ÐÂĿ¼²¢½«Ä³Ò»Ä¿Â¼ÏµÄËùÓÐDBFÎļþ¸´ÖƵ½ÐÂĿ¼Ï£¨
ÀàËÆ
´ð£º½¨Á¢Ä¿Â¼:md floder£¬»ñµÃµ±Ç°Ä¿Â¼:defaultfloder=sys(5)+curdir( )
½¨Á¢ÍêÕûµÄ±¸·ÝĿ¼¼°Îļþ·¾¶:bf_path=defaultfloder+"\"+"floder"+"\"+"*.
dbf"
(defaultfloderºóÃæÊÇ·ñÒª¼Ó"\"ÎÒÓеãÍüÁË,×Ô¼ºµ÷ÊÔһϰÉ)
¿½±´Îļþ:copy file *.dbf to &bf_path
¡¡
34¡¢ÎÒÔÚvfp6ÏÂ,Á¬±àÒ»¸öÏîÄ¿µÄcom dllʱ³ö´í,³ö´íÐÅÏ¢ÈçÏÂ:"Áª±àDLL: ²»ÄÜȱ
ÉÙOLE¹«¹²Àà.",²»ÖªºÎ½â,ÇëÓÐʶ֮ʿµã²¦Ò»¶þ.
´ð£ºÖ»ÒªÄ㽫ÄãµÄÀà¿âÖеÄÒ»¸öÀඨÒåΪOLE¹«ÓÃÀà¾Í¿ÉÒÔÁË¡£·½·¨ÊÇÔÚÀàä¯ÀÀÆ÷
Öдò¿ªÄãµÄÀà¿â£¬Ëæ±ãÓÒ»÷Ò»¸öÀàÈ»ºóÑ¡ÔñOLE¹«ÓÃÏî¼´¿É¡£
¡¡
35¡¢ ÔÚÒ»¸öForm ÖÐÓм¸¸ö¿Ø¼þ ¶¼Òªµ÷ÓÃͬһЩ¹«¹²µÄ¹ý³Ì ,: ÕâЩ¹«¹²µÄ¹ý³Ì
Ó¦·ÅÔÚÄÇ?
´ð£ºÔÚÐÞ¸Ä±íµ¥×´Ì¬Ï£¬´Ó²Ëµ¥ÖÐÑ¡Ôñ¡°±íµ¥¡±->¡°Ð·½·¨³ÌÐò¡±½¨Ò»¸ö×Ô¶¨Òå¹ý
³Ì¼´¿É£¡
¡¡
36¡¢ÇëÎÊ×éºÏ¿òÖÐÄĸöÊôÐÔÊÇÖ¸Óû§Ñ¡ÖеÄÄÚÈÝ£¿
´ð£ºµ±µ¥Ñ¡Ê±:this.list1.value »ò this.list1.listindex ¼´ÊÇÄãËùÑ¡µÄÖµ»òÐò
ºÅ.¶àѡʱ:ÓÃthis.list1.selected(i) À´¶¨: µ±=.t. ´ËÏîÒÑÑ¡£¬=.f. δѡ.
--
´óº£ÎÞ±ßÌì×ö°¶
ɽµÇ¾ø¶¥ÎÒΪ·ç
¡ù À´Ô´:¡¤¹þ¹¤´ó×϶¡Ïã bbs.hit.edu.cn¡¤[FROM: 202.118.227.121]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
Ò³ÃæÖ´ÐÐʱ¼ä£º3.215ºÁÃë