  | 
				VFP 愛用者社區 本討論區為 Visual Foxpro 愛用者經驗交流的地方, 請多多利用"搜尋"的功能, 先查看看有無前例可循, 如果還有不懂的再發問. 部份主題有附加檔案, 須先註冊成為社區居民才可以下載.   
				 | 
			 
		 
		 
	
		| 上一篇主題 :: 下一篇主題   | 
	 
	
	
		| 發表人 | 
		內容 | 
	 
	
		hichin
 
  
  註冊時間: 2008-02-21 文章: 88
 
  第 16 樓
  | 
		
			
				 發表於: 星期二 六月 03, 2008 2:24 pm    文章主題:  | 
				     | 
			 
			
				
  | 
			 
			
				 	  | saint 寫到: | 	 		  | 那你要用..dodefault() 在appform1 的 init 中,你了了嗎? | 	  
 
 
============
 
saint大:
 
了啦,非常感謝,這是個好地方 _________________ 誰知萬法唯心的奧義 | 
			 
		  | 
	 
	
		| 回頂端 | 
		 | 
	 
	
		  | 
	 
	
		syntech
 
 
  註冊時間: 2003-05-16 文章: 4252 來自: Taipei,Taiwan
  第 17 樓
  | 
		
			
				 發表於: 星期二 六月 03, 2008 3:21 pm    文章主題:  | 
				     | 
			 
			
				
  | 
			 
			
				OO P 的學問很深,
 
很多人連最基本的都沒搞懂就上了. _________________ 如果公司有下列困擾:
 
1. 找不到便宜,快速,簡易的 生產排程軟體
 
2. 不知道如何快速排定 採購計劃
 
3. 成本抓不準,自己算比軟體算有用
 
4. 想學習系統規劃,想找系統架構的顧問
 
 
請聯絡我們,也許我們幫得上忙 | 
			 
		  | 
	 
	
		| 回頂端 | 
		 | 
	 
	
		  | 
	 
	
		hichin
 
  
  註冊時間: 2008-02-21 文章: 88
 
  第 18 樓
  | 
		
			
				 發表於: 星期二 六月 03, 2008 3:37 pm    文章主題:  | 
				     | 
			 
			
				
  | 
			 
			
				 	  | syntech 寫到: | 	 		  OO P 的學問很深,
 
很多人連最基本的都沒搞懂就上了. | 	  
 
===============
 
嗯..做中學.... _________________ 誰知萬法唯心的奧義 | 
			 
		  | 
	 
	
		| 回頂端 | 
		 | 
	 
	
		  | 
	 
	
		fpchin
 
 
  註冊時間: 2004-06-17 文章: 15 來自: Malaysia
  第 19 樓
  | 
		
			
				 發表於: 星期二 六月 03, 2008 3:38 pm    文章主題:  | 
				     | 
			 
			
				
  | 
			 
			
				本人的做法如下:
 
 
obj1 = createobject("form1")
 
obj1.show
 
 
define class form1 as form
 
   windowtype = 1
 
   dimension a(2)
 
   left = 100
 
   top = 100
 
   
 
   add object text1 as textbox with ;
 
      top = 10,;
 
      left = 10,;
 
      width = 100,;
 
      height = 25
 
      
 
   add object text2 as textbox with ;
 
      top = this.text1.top + this.text1.height,;
 
      left = this.text1.left,;
 
      width = this.text1.width,;
 
      height = this.text1.height
 
      
 
   add object cmd1 as commandbutton with ;
 
      top = this.height - 30,;
 
      left = 10,;
 
      width = 100,;
 
      height = 25,;
 
      caption = "command 1"
 
      
 
   PROCEDURE INIT
 
      thisform.text1.value = 0
 
      thisform.text2.value = 0
 
   ENDPROC
 
      
 
   PROCEDURE CMD1.CLICK
 
      xobj = createobject("form2")
 
      xobj.obj1 = thisform
 
      xobj.show
 
      thisform.text1.value = thisform.a(1)
 
      thisform.text2.value = thisform.a(2)
 
   ENDPROC
 
      
 
enddefine
 
 
 
define class form2 as form
 
   windowtype = 1
 
   top = 150
 
   left = 150
 
   obj1 = ""
 
   
 
   add object cmd2 as commandbutton with ;
 
      top = this.height - 30,;
 
      left = 10,;
 
      width = 100,;
 
      height = 25,;
 
      caption = "command 1"
 
   
 
   PROCEDURE CMD2.CLICK
 
      thisform.obj1.a(1) = 1
 
      thisform.obj1.a(2) = 2
 
      thisform.release
 
   ENDPROC
 
enddefine | 
			 
		  | 
	 
	
		| 回頂端 | 
		 | 
	 
	
		  | 
	 
	
		 | 
	 
 
  
  	 
	    
  	   | 
 	
您 無法 在這個版面發表文章 您 無法 在這個版面回覆文章 您 無法 在這個版面編輯文章 您 無法 在這個版面刪除文章 您 無法 在這個版面進行投票 您 無法 在這個版面附加檔案 您 無法 在這個版面下載檔案
  | 
   
  
		 |