Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Property QuiteMode is not Found

Status
Not open for further replies.

stanlyn

Programmer
Sep 3, 2003
945
US
Hi, I'm getting a "Property QuiteMode is not Found" error when doing a report with a html listener. The calling code is:

*-- Create the Listener class
Set Classlib To '.\classes\_REPORTLISTENER'
ox = Createobject('htmlListener')

*-- Set some properties
ox.TargetFileName = (lcHtmlFolder) + Alltrim(v1.page_key)
ox.Quietmode = .T.

lcFileName = (lcHtmlFolder) + Alltrim(v1.page_key) + '.htm'

Set Console Off
Report Form .\reports\GoogleBot Object ox All

I am using the latest report listener classes and header files.

Any ideas?
VFP9sp2
Thanks, Stanley
 
If you copied the error 1:1, then search for another part of your code, where you made that typo. It's not happening at the code you posted.

Bye, Olaf.
 
Olaf,

I do not see any typos in the code, as I posted it showing how I instantiated the report with necessary settings. All the other stuff and the error is coming from the report listener mechanisms.

It triggers a set step on and when the debugger opens the error massage says "Property QuiteMode is not Found". Moving thru the stack shows the line that is assigning QuiteMode and erroring. Its all part of the listening devices and not what I've written...

Stanley
 
Yes, I said so, there is no error in the code you posted. It's somewhere else

Quite vs. Quiet.

Use Code References search to find the part of your code having Quitemode in it instead of Quietmode and ammend that.

If that's not the case, add a breakpoint right before the line ox.Quietmode = .T. and see if that really does create the error, eg inspect what ox is at that moment, inspect ox.class or ox.name for example or use intellisense in the command window, while the code is suspended.

Bye, Olaf.

 
Sorry Olaf,

I spelled it wrong when composing this thread. Nowhere in my code have I ever used Quietmode, as that is embedded into the listener. I just know I'm getting the error when trying to use the listener functionality... ox is the fxlistener object and the error message is coming from its error method.. More testing...

Thanks, Stanley
 
well, my second recommendation to debug at the suspected point in code still holds valid. Maybe some class definition does make a PRIVATE property of QuietMode, so it's there, but not available from outside of the class code. You'd see that in intellisense on ox while suspending, with a key icon in front of the property.

Bye, Olaf.
 
I'm still working on this... still not resolved... Any more ideas i can run with?

Thanks, Stanley
 
What's takeing you so long to debug it? Not knowing how to start the debugger right before that line? Add a SET STEP ON.

Bye, Olaf.
 
Pulled away on other projects... And yes, I know how to run the debugger, been do so since 1998. I can also say that I have never assigned anything to "QuietMode" in the project, as CodeReference has also confirmed that. There are references of it in the listener files and classes, and I've never touched them.

Its been a week since I've last run it, but I can tell you that its coming from the cryptic code that makes up the listener stuff. I actually have this working in a different app/project and I had started isolating components, and etc. Just didn't have the time to finish it in that sitting.

I'll get it..., but was wondering if there was anything else I should look at?

Thanks, Stanley
 
>anything else I should look at?

In the first place, what could that be? You need to find out where the error comes from. It's not a cryptic error, it's clearly stating a property is missing. If you know a class has that property and there is no type, THE ONLY reason could be on some class level this is protected or hidden.

And you'll see that using intellisense during debugging. But not in the debugger, only in the intellisense drop down list when using the command window while in suspended mode.

I can't imagine anything else, if I'd do so you can trust I would extend. If you'd just test this and don't come up with the expected result I could think of further analysis, eg again using coverage profiling of what really runs. But it doesn't make sense to prethink all possible analysis methods before doing the obvious.

The obvious is the error message has it's reason. VFP is rather seldom misleading of totally wrong in it's error handling. You just need to know a native property made hidden or protected exists, but is reported nonexistant to usage outside of the class code itself. That's not VFP, that's an OOP concept. And it's totally right to deny the existance of such protected or hidden properties.

There are other reasons of course, some of which are: the object is not a listerner having that property or there is a typo in code, or, or, ....

And they all would become obvious when debugging, obvously, because you can inspect everything in suspended mode.

Bye, Olaf.
 
The property is showing up in the debugger in the class methods that I consider cryptic, as it would take a lot of time to decipher what the foxpro team was doing. Have you ever tried to use code that was generated by one of their wizards? Thats what I call cryptic.

Again, according to the docs, setting up the html listener with the 4-5 lines of code shown at the top is all that is needed to generate html output. No where other than those 4-5 lines of code have I set Quietmode = anything.

I have to get this working, and will try again later today.

Thanks Olaf, and I'll be back,
Stanley
 
>The property is showing up in the debugger in the class methods that I consider cryptic,

That is totally valid in combination with my thought, this might be a private or hidden property. Because that means it's available to class code, and only class code, but not for setting it from outside, eg via a variable ox referencing the object.

That's the nature of private/hidden properties.

And you're still not listening. It does not help to find this property in the debugger. You NEED to have the intellisense list showing all the properties of the currently in memory object ox and will see a lock symbol in front of prive/hidden properties. And you'll see that intellisense list by typing in the command window during suspend.

Bye, Olaf.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top