9.5    การนำ DataWindow มาใช้งานกับ DataWindow Control 

 การนํา DataWindow มาใชŒงานกับ DataWindow

 1. เปด Window Painter
เลือก w_employee
กดปุ †ม OK
2. เลือก dw_master Datawindow Control
3. เลือก Properties จาก popup เมนู ของ DataWindow Control
4. พิมพ d_emplist ในช‹อง DataWindow Object Name
กดปุ †ม OK
โปรแกรม PowerBuilder จะนํา d_emplist ไปสัมพันธกับ dw_master บน Win-
dow Painter จะแสดงดาตŒาวินโดว d_emplist ใน dw_master ท‹านจะเห็นหัวของคอลัมน
แต‹ไม‹เห็นขŒอมูล DataWindow จะไม‹ทํางานดŒวยคําสั่ง Select จนกระทั่ง เมื่อท‹านรันแอพ
พลิเคชัน
 


 รูปที่ 14 ไดอะล็อกบ็อกซ์ Properties ของ DataWindow


Previous 
Next 
TOC