Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling Parent Class Method
Message
 
 
À
06/02/2007 09:48:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01192591
Message ID:
01192777
Vues:
15
>Maybe my code would help explain the question:
>
>loBizPDPExclusionsObject = createobject("bizTextMacroPDPExclusionsObject")
>lcExclusions = loBizPDPExclusionsObject.GetAlias()
>loBizMacroObject.Requery()
>select (lcExclusions)
>go top
>do while !eof()
> *-- Update some records in the view
> REPLACE Field WITH Value
>enddo
>*-- This is where I want to call the parent class's Save
>loBizPDPExclusionsObject.ParentSave(.T.,.T.)

Just call it loBizPDPExclusionsObject.Save(.t.,.t.)

If you don't have anything coded in this particular class Save method, the parent class Save would be called. Otherwise you would have to use scope resolution operator.
If it's not broken, fix it until it is.


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

Click here to load this message in the networking platform