Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling Parent Class Method
Message
 
 
To
06/02/2007 10:49:27
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01192591
Message ID:
01192821
Views:
14
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform