Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling Parent Class Method
Message
 
 
À
06/02/2007 10:49:27
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:
01192821
Vues:
13
>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.)
>
>Definitely need the equivalent of a DoDefault or scope resolution operator. I tried that in the above code, but couldn't figure out how to apply either. How would I do that in the last line of the code above?

Did you read my reply? If bizTextMacroPDPExclusionsObject class has a Save method (or any class which one is based on has Save method), then just call Save(.t.,.t.) and be happy with it.

If you want some custom code in the Save method, then you have to define the class first (visually or programmatically, doesn't matter) and program Save method there.
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