Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to return value from DoDefault()?
Message
De
12/04/2011 10:12:19
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01506997
Message ID:
01507003
Vues:
54
>Hi,
>
>I have a method in the base class (e.g. method name BEFORE_PROCESS) that returns .T. or .F.
>
>I want the child class of this class to have its own code before calling the parent BEFORE_PROCESS. Therefore, the pseudo code in the child method BEFORE_PROCESS is:
>
>
>nChoice = messagebox("question ...")
>if nChoice = 7
>   RETURN .F.
>endif 
>
>*-- now calling the method of the parent class
>DODEFAULT()
>
>*-- but how to capture the return value in the parent method so that to return from here?  
>
RETURN DODEFAULT()
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform