thisform.grid1.recordsource=‘tablename‘&&恢復原表別名2 >thisform.grid1.recordsource=Nullthisform.grid1.recordsource=‘newtablename‘&&改變了別名3 >thisform.grid1.recordsource=Nullthisform.grid1.recordsource=‘select column1,column2 from tablename where column1=thisform.text1.value into cursor Temptable‘thisform.grid1.recordsource=‘Temptable‘
Microsoft Visual FoxPro的性能調整技巧
http://www.woyoushebao.com/content/07/0303/13/21123_382750.shtml
2007/3/3 13:46:37
Microsoft Visual FoxPro的性能調整技巧。在Visual FoxPro中,索引是樹形的數(shù)據(jù)結構,所以在索引中查詢非??臁纳媳碇形覀兡軌蚝芮宄乜闯?,WHERE子句在很大程度上會影響性能,尤其是有許多字段要更新時(關鍵字段和經(jīng)過修改的字段),或者是有許多字段能夠被更新時(關鍵字段和可更新字段)。表單/對象性能。Visual FoxPro不認識MEMLIMIT,在FoxPro 2.6中, MEMLIMIT是指用于說明FoxPro能夠分配使用的最大內(nèi)存的配置設置。
點查詢 thisform.grid1.recordsource=’’ select rsda.bh,xm,xb from table where aa>1 into cursor lsb thisform.grid1.recordsource="lsb" 注意,你表格比如要顯示bh,xm兩列,但數(shù)據(jù)源中必須要有sno,bh,xm三列,則你必須寫成bh,xm,sno,而不能寫成sno,bh,xm,把顯示不用的列寫后面。