Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why does a page Init method not execute?
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01386953
Message ID:
01386965
Vues:
48
>>It's hard to say, actually. We're using pageframe class with 2 pages and I think we don't use Page.Init event that much. Instead we're adding containers in run-time. The container can have some code in its init method.
>>
>>Anyway, you're saying that it doesn't matter what code you put in the Initi, it doesn't fire, correct?
>
>Yes, Naomi, that is true. I can put DoDefault() at the beginning of the page Init. Set a breakpoint there and it doesn't get hit.
>
>My feeling is the source of my problem is the pagecount set in the class to 9. I changed that to 11 in the form, and this is the 11th page that I have entered. Even though I change the PageOrder for this page to 9, Init still doesn't get hit.
>
>With the PageOrder for this page set to 9, the two pages with PageOrder set to 10, and 11 are really superfluous, but I don't recall how to delete them. If I reduce the Pagecount for the pageframe to 9 in the form, I get an error saying that "pgImport (the last page in the pageframe now) is a class member".
>
>Jim

I think Sergey nailed the problem with his last response. I don't use SCX based forms as well as I don't use MebmerClasses, so I didn't remember that quote from Help.

Though I don't know where exactly is that quote taken out from. I could not find it in MemberClasses Help.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform