chpicker
Programmer
- Apr 10, 2001
- 1,316
Hey everyone,
I'm having an issue with VFP not behaving the way I thought it should.
I created a class, call it "myClass". In this class is a HIDDEN member called "editmode". It has a public function called "DoSave" which accesses this member.
In a subclass of this class, I override the DoSave method. The override does not try to access the "editmode" member (as far as it's concerned, it doesn't exist). However, it DOES issue a DODEFAULT() to call the parent class's DoSave method. At this point, VFP generates the "property editmode is not found" error.
Isn't this supposed to work? I know that I can't access the hidden member in the method override, but the parent class should still have access to it. Isn't this a bug? The only way I was able to get around this was to change the member to Protected instead of Hidden. Granted, the program still works fine, so it's not a HUGE problem, but it's bugging me nonetheless.
Ian
I'm having an issue with VFP not behaving the way I thought it should.
I created a class, call it "myClass". In this class is a HIDDEN member called "editmode". It has a public function called "DoSave" which accesses this member.
In a subclass of this class, I override the DoSave method. The override does not try to access the "editmode" member (as far as it's concerned, it doesn't exist). However, it DOES issue a DODEFAULT() to call the parent class's DoSave method. At this point, VFP generates the "property editmode is not found" error.
Isn't this supposed to work? I know that I can't access the hidden member in the method override, but the parent class should still have access to it. Isn't this a bug? The only way I was able to get around this was to change the member to Protected instead of Hidden. Granted, the program still works fine, so it's not a HUGE problem, but it's bugging me nonetheless.
Ian