Avatar

Correct answer by
Level 10

In the long run ...no there is no overall difference in performance. But there is a difference as to when you

will "pay" for the performance.

In option 1 when the form initializes you are only creating objects that exist on the pages that are being shown. When you change the page the new objects are being created and used. So each time you turn a page you are paying for the creation of the new objects.

In option 2 you are creating all objects for all pages right away. If your form is big enough you may see that option 2 will take longer to start than option 1. Also if any redrawing or relayout occurs in the form option 2 will take longer because there is more to do.

So I woudl suggest option 1 for better performance....this will only be an issue for large forms.

Hope that helps

Paul

View solution in original post