This is the fourth inning. I am still struggling with an exec build. No luck so far.
Now there is some help in the form of the error reporting authority of the error control. Unfortunately, for some strange reason only a small fraction of runtime errors are in the log file. I cannot understand why. But what I have seen so far is very revealing. The error message is "feature is not available" and the line in the source code is idenfified and it points to this statement:
THISFORM.timer1.Seconds = 0
The next statement is .minutes and then .hours. It seems I saw the exec stumble at those as well but they are not in the log file.
The timer is of course:
NCTAudioDesign2.NCTTimeDisplay2.2
and these features are not only available but they work for me perfectly at design time before I build the exec.
Another thing I do not understand is that during the build (at times!) Fox makes a statement that it cnnot find a form or two. A perfect reference exists in the source code for those forms SET PATH TO... Again everything is hanky-dory at design time.
My user assigned properties (some of them actually) also are not found at runtime. I posted the code describing how they are assigned previously. It may not be perfect code but it WORKS. Why does it all happen when I try to run my exec
Forget the user assigned properties which I do dynamically most of the time. How about the timer What is wrong with it.
My hunch is that I have an environment variable or perhaps a few set up incorrectly. Is there any way to find out
Thanks

feature not found
puppyfriend
Well, the bad news is that my joy about solving 50% of the puzzle was premature. It turns out the properties are not defined after all. They were just shifted a few steps further.
I am back to square one. Perhaps Foxpro does not want to deal with macro substitutions at runtime Other properties seem to be defined. I am still unable to get a complete error record from sessions.
Not a good day, not a good mood.
hahientrang
The new development. I figured out what was missing: the config.fpw file. I do not remember creating it for the first project myself: I knew very little at that time. I remember that when Tamar (or Marcia, sorry cannot clearly recall) suggested that I should create one I checked and it was already in the project.
I copied the config.fpw to this new project with a few cosmetic changes, mostly in comments and bingo! another problem appeared. I am reminding that my objective was to get rid of the screen and in the config.fpw it was set OFF. It seems now there is no screen, although I am not sure because the whole form appears just for a few milliseconds and then disappears. I do have READ EVENTS command in the prg file right after DO FORM command. I do not understand what is missing now
Thanks.
Melampus
Jbernoski
Peawee
>. I read his post where he THREATENED me that NOBODY would help me because he did not like it.
I beg your pardon, but neither I, nor anyone else, has threatened you, or said that no-one would answer you because of my likes or dislikes. All anyone has suggested to you is that your tone is overly aggressive and that such a tone tends to dissuade people from offering opinions. Here, to save you the necessity of looking is the exact text of my message to you:
Had you considered the possibility that your tone and attitude toward those who try to help is putting people off from answering you
Certainly demanding answers from people who give their time and knowledge for free is not generally a good way to get help. Nor is telling someone (as you did me) that you are not interested in understanding but only want solutions.
This problem may be "serious" for you, but it certainly doesn't matter to me!
This is the one to which you replied with:
I would greatly appreciate if you stop reading my posts let alone making comments. Keep your "wits" to yourself. If you have nothing to say, just keep your mouth shut. As far as I remember I've had little meaningful help from you anyway.
I have to confess that I don’t exactly find that response congruent with your latest statement that:
I haven't said anything offensive to anyone including Andy. On the contrary I praised him and his help all the way with lavish prases you can hardly find anywhere in this forum.
Call me narrow minded but I don’t consider “As far as I remember I've had little meaningful help from you anyway” as falling into the category of “lavish praise” nor do I consider being told to “just keep your mouth shut” as anything other than offensive.
For your information, I am a moderator on this forum and, as such, one of my tasks is to ensure that people respect each other and don't use inappropriate tone or language. If you have a complaint about anything I, or anyone else, has said to you, you are welcome to complain about my management of this forum to the hosts (Microsoft).
But whether you have a legitimate grievance or not, you still do not have the right to be aggressive, rude or offensive to others and I must ask you to refrain from using language that can only be read as combative.
Bernon
What is going on 28 people've checked with this post so far and nobody left a single word! I am geting scared. Please understand that it is a SERIOUS problem for me and resolution is a must.
Please say something. Any wild guesses, suggestions as crazy as you can imagine, any loony stuff will be appreciated. Almost anybody out there has a better chance to come up with a pointer than me.
Please help.
DeadlyViper
I forgot to mention yesterday and important detail. Without it the whole thing makes little sense. Aside from defining properties on the fly at the mousetouch I had to take care of the actual error messages during the time when the form is loaded at runtime as an exec.
Those user defined properties are used in many methods and events and in order to protect them I had to put them in TRY .... CATCH ENDTRY blocks, every single one of them. Thus at the loading time the absent properties are ignored but when it comes to working with the form they are already defined after the first click.
In order to find out how I can take care of those features that are "not found" that pertain to some ActiveX properties I suspect, I decided to start another project, devise a simple form with barebone features, build an exec and keep adding new controls until a problem develops. Immediately I ran into another weird problem.
This form has a pageframe with 8 pages and a "stop" botton, nothing else. There is also a short .prg file that invokes the form. It is the starting point. When I built an exec and tried to run it the form came up with the _SCREEN environment! I have never seen it with my first, much more complicated form! This is so strange. I tried to copy the structure of the prg file faithfully from my first project, changes the semantics of course. The "stop" botton has the same commands as in the first project: destroy, reliease but I cannot get rid of the SCREEN!
Actually it is not precisely the screen one can see when browsing projects. It has "File Edit Window Help" on taskbar, nothing else but it is still a screen.
Also I have another question. How can I find out <programmatically!> from inside a method if the form has been deployed and it is run from an exec or alternatively it is still in development environment. Is there a system variable somewhere which can tell you that
I remember that either Tamar or Marcia told me that in order to get rid of the screen I would have to deploy the application and create an exec. At least that is how I remember those postings. And it came true for the first project but not the second one. It is surreal!
There is obviously something I am missing still in the whole concept. Please help.
Thanks
Doug Adams
OK, I have solved exactly 50% of the puzzle, perhaps the easier part. The user defined properties are now doing fine all across the board. I do believe it is bug. The system should not work this way. In development environent it behaves one way but at run time totally different.
It occured to me that after deployment the way the objects are loaded into object space (I hope I am using the right term) is different from how it is done in development. Thus I moved those user assigned properties from INIT and in one case LOAD method to object.MouseDown methods. For instance if I defined a particular property (e.g. currentColumn) for a grid before in INIT for page3 where this grid is located now I define those properies via .AddProperty () in MouseDown but this definition is sheltered inside IF TYPE ("...propName..") == "U" etc. thus the property is added only once when I touch this page first time. It is too early to tell if it is a complete solution but so far so good.
The "feature is not available" is still there. I get a dozen error messages at startup when I invoke the form. I have an idea to find out how to twist this problem's neck but it might take a few days.
Stll, any, any, any suggestions will be greatly appreciated. And I mean it: ANY.
Thanks.
Kitsune
>>As far as "unprofessionalism" is concerned please read back the exchange related to that post. I haven't said anything offensive to anyone including Andy.<<
Sorry, my bad. I must have read the following from the prior post and "misinterpreted" it. {g}
>>I would greatly appreciate if you stop reading my posts let alone making comments. Keep your "wits" to yourself. If you have nothing to say, just keep your mouth shut. As far as I remember I've had little meaningful help from you anyway. <<
Telling someone to keep their mouth shut is not only unprofessional, but it is just plain bad manners in any culture. And by the way I was not threatening you by stating my new understanding of the abuse link, I was just expressing my shock that anyone would need one on a family friendly developer forum.
Thanks for your clarification, and good luck solving your problem.
technisat
Also I have another question. How can I find out <programmatically!> from inside a method if the form has been deployed and it is run from an exec or alternatively it is still in development environment. Is there a system variable somewhere which can tell you that
Well, that was just a quizz:) Nobody knows the answer The answer is: IF _VFP.StartMode = 4 then it is a distributable exe or app environment.
Just kidding. It was not a quizz. I wish it were. Just found the truth out.
Rana Basu
Had you considered the possibility that your tone and attitude toward those who try to help is putting people off from answering you
Certainly demanding answers from people who give their time and knowledge for free is not generally a good way to get help. Nor is telling someone (as you did me) that you are not interested in understanding but only want solutions.
This problem may be "serious" for you, but it certainly doesn't matter to me!
Khelb
As far as "unprofessionalism" is concerned please read back the exchange related to that post. I haven't said anything offensive to anyone including Andy. On the contrary I praised him and his help all the way with lavish prases you can hardly find anywhere in this forum. You have deserved them. I have said and can say it again that this forum is the best in terms of the user support. Andy, Marcia and Rick's book is on my desk right now.
MY BEHAVIOR IS WELL DOCUMENTED. If comes to it I will defend it.
I cannot comprehend why Andy got mad at me when I said that because of the nature of my work I could not spend much time on studying theory and that I am interested PRIMARILY in practical solutions Is it a crime If you want I can stress it again.
I was shocked when I read his post where he THREATENED me that NOBODY would help me because he did not like it. I said: fine. If he wants he should not try to help me just leave me alone. That's what I said. I can say it again: leave me alone if you are offended. I did not intend to offend anyone but I cannot deal with idiosyncrasies. I do not have time.
I want to make a point that you are THREATENING me here. You can file an abuse report yourselves, go ahead. This suggestion that "you now understand why there is an abuse link on each post" is provocative. I am here to discuss my issues and get help.
Thus if your opinion is that I am guilty of abusing my privileges here, go ahead, make my day, as they say in the movies. I will deal with it on official level. Everything I said is in the record.
Regards.