Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling a method from init
Message
De
16/10/2000 14:20:42
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00429886
Message ID:
00429901
Vues:
34
>I'm going to answer you both at once...
>
>FRED:
>"Are you sure you don't have any code in the Init method of the class instance on the form? If you do, it won't do your "base" code."
>
>VIN:
>"That's not normal behavior. You should be able to call other methods from an Init. Are you sure it is not running? It might be worth sticking a breakpoint in there and tracing the program execution...."
>
>There isn't any code overriding it. It does everything else in the init properly. The _only_ thing it doesn't do is call this method. I tried putting a wait window in the method and it doesn't come up. The cursor it builds isn't getting built. It's very strange.
>
>I tried putting a suspend right before the method call and it doesn't suspend. WAIT WINDOW doesn't work, either. But I know it's getting in there and doing the rest of the code because I can see the visible results.
>
>It's quite bizarre.
>
>Thanks,
>
>Michelle

If you don't hit your wait window or a messagebox in your Init code before you call your custom code, then it is NOT running what you think it is. Try putting a SUSPEND in your Init method (baseclass) and stepping through the code. You might be surprised...
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform