ขอขอบคุณ Mashares ณ ที่นี้ด้วยครับ
เราจะใช้คำสั่งนี้ ก็ต่อเมื่อ เพจนั้นถูกสร้างอยู่ก่อนแล้วและมีการจัดเรียงLayout ที่มีวิวต่างๆบรรจุเรียบร้อยแล้ว ซึ่งต่างจาก Layoutชื่อ MainPage ซึ่งยังไม่ได้ใส่วิวใดๆเลย
www.b4x.com
หมายเหตุ
สามารถดูตัวอย่างเพิ่มเติมได้ จากข้างล่าง
https://www.b4x.com/android/forum/t...is-available-for-download.165640/post-1015584
เราจะใช้คำสั่งนี้ ก็ต่อเมื่อ เพจนั้นถูกสร้างอยู่ก่อนแล้วและมีการจัดเรียงLayout ที่มีวิวต่างๆบรรจุเรียบร้อยแล้ว ซึ่งต่างจาก Layoutชื่อ MainPage ซึ่งยังไม่ได้ใส่วิวใดๆเลย
B4X:
'MyDisplayedPage ถูกสร้างเตรียมไว้ก่อนหน้านี้
B4XPages.AddPageAndCreate("MyDisplayedPage", MyDisplayedPage)
'B4XPages.ShowPage("MyDisplayedPage")
B4XPages.ShowPageAndRemovePreviousPages("MyDisplayedPage") '<--ต้องการลบ MainPage ไม่ให้ปรากฏด้านหลัง
B4XPages-Add a Page Create it and Show it
I can do this to add, create and show a new page.: B4XPages.AddPageAndCreate("MyDisplayedPage", MyDisplayedPage) B4XPages.ShowPage("MyDisplayedPage") Why isn't there a method that can do all three at once in one line like this: B4XPages.AddPageAndCreateAndShow("MyDisplayedPage", MyDisplayedPage)
หมายเหตุ
สามารถดูตัวอย่างเพิ่มเติมได้ จากข้างล่าง
https://www.b4x.com/android/forum/t...is-available-for-download.165640/post-1015584
Last edited: