Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Prevent a page of a pageframe loading
Message
 
To
12/11/2002 06:45:12
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00721464
Message ID:
00721476
Views:
8
Thanks for the replies but I think I answered it myself, I've just returned .F. in the init() of the appropriate pages.

>Caroline
>
>I have not tried this but perhaps you can put some code in the INIT event of each page which determines whether to init that particular page or not. If you do not want that page then I think you could do something like THIS.ENABLED = .F. and then NODEFAULT to prevent the objects for that page from being created. Something like this perhaps?
>
>Jos
>
>>Hi all
>>
>>Is there some way to prevent the overhead of loading a page of a pageframe other than by adding the objects the first time the page is selected.
>>
>>I have a pageframe with some 14 pages, some of which are not available if certain modules have not been installed. I would just like to be able to delete the unavailable pages as necessary in the Load event but at that stage the pages don't yet exist, but if I wait till the Init method then the pages and all their objects will have been initialised, so....
>>
>>Is there some other way of achieving this?
>>Thanks in anticipation.
Caroline
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform