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:
01386964
Vues:
49
>>Hi Naomi,
>>
>>I was just thinking about that too. The pageframe class that I am using has the Pagecount set to 9. I should have made that 0 in the class I think. In any case, although I have changed it in the form to 11, I think that is where the problem lies.
>>
>>What do you think?
>>
>>Thanks,
>>Jim
>>
>Hi Jim,
>
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform