Category Archive PowerBuilder 8

Byphunsanit

PowerBuilder: Target

ตัวโปรแกรมจริง ๆ ของ powerbuilder ที่เอาไป build เป็น *.exe จะอยู่ในไฟล์ target โดยไฟล์นี่จะมีหน้าที่ลิสต์ Library ต่าง ๆ ที่ใช้ไว้

  1. เปิด workspace ที่ต้องการขึ้นมาเช่น งานชิ้นใหม่ก็เปิดจาก development.pbw
  2. คลิก file
  3. คลิก Open..
  4. Browse ไปไฟล์ *.pbw ที่ต้องการ
  5. คลิก OK
  6. คลิก file
  7. คลิก New…
  8. ที่เท็บ Target เลือก Application
  9. ระบุ
    • Application Name: เช่น prototypes_pb8 ย่อมาจาก Prototype Power Builder 8
    • Library: จะเป็นไฟล์ที่เก็บส่วนประกอบย่อย ต่าง ๆ เป็นกลุ่ม ๆ เหมือนห้องสมุดที่แบ่งเป็นห้องสมุดการแพทย์ก็อยู่ที่หนึ่ง ห้องสมุดเกี่ยวกับการเกษตรก็อยู่อีกที่ เช่น C:\UsersDatas\ProjectsGit\PowerBuilder\Prototype_PB8\common.pbl
      สาเหตุที่ไฟล์นี้ใช้คำว่า common เพราะตั้งใจจะไว้เก็บ function กลาง ไว้ใช้ทั้งโปรแกรม
    • Target: จะเป็นชื่อไฟล์ .exe ที่จะ build ขึ้นมา เช่น C:\UsersDatas\ProjectsGit\PowerBuilder\Prototype_PB8\prototypes_pb8.pbt

เมื่อเปิดโพลเดอร์ C:\UsersDatas\ProjectsGit\PowerBuilder\Prototype_PB8 จะเห็นอยู่ 2 ไฟล์ main_pb8.pbt และ common.pbl ที่จะอธิบายต่อไป