Actually, maybe I am asking too much. Let me describe.
I am in a form, in a method called SAVE.
1) I want the debugger to start, with the trace window.
2) I want to step through the method line by line and see what is happening.
So, what command do I put at the start of the method to open...
Guys, I have never been a big user of the VFP debugger, but I want to use it more. I am more familar with the old Clipper debugger, which I found very useful.
Is there some suggestions on using it in a test program, how to start the trace window, close it on the fly, etc. Maybe a FAQ sheet...
Craig, thanks for the info. I will take a look at all of them. I was have liked (so far) about Ramani's routine is that 1) it lets me set up different programs easily, 2) Is very simple and 3) it works exactly like I have wanted it to. Does anyone no of cases here Ramani's program does not...
Opps. Did a FAQ check and found my answer in Ramai's excellant little addition to my program, as noted below and found in FAQ 184-839. It worked the first time and every time. And, whenever I close the one instance and then start another, it starts everytime. Perfectly.
=myInstance("A name...
Guys, you all were a big help to me in developing routines to prevent multiple instances of a modeless form from running. Now, a another question. How do I prevent multiple instances of a Visual FoxPro program from running?
The legacy program I am working on can have multiple instances start...
Guys, I want to thank everyone here for all their input. I finally decided on a different approach that works very well based on a number of suggestions:
First, I had to accept in this program that the former designer based the forms on a few classes. All of the classes when used as forms are...
Marcia, I think you just solved a million dollar problem.
Now, how do I get around checking for forms that do NOT have the cFormID as a property. Is there a way in the form to precheck if a form has a particular property existing?
Frank
Guys, I have a question on a thread that started earlier. I have a form with a grayed out .name property, apparently from a class. I cannot change the .name property, but would like to as the class is used to create multiple forms, all with the same .name.
Any idea how I can rename these...
It would be, but I cannot CHANGE the name property on these forms. It is locked in some way. I believe it is because a class was used to develop them, and the forms are keeping the class name 'form1'.
If that were true I could just use WEXIST(). Anyone have an idea to make the name of the...
Kosta, thank you for the try, but my problem is that the NAME of the in this code is not editiable- seems to be set in a class aforehand, and so the name (Form1) is the name of several forms that may be open at the same time. You code will not work as name has to be the name of several forms...
I think I need to revise my question. How do I detect if a FORM has been opened as in a DO FORM <formname>. Foxpro does not appear to have a function to do that. I want to see if the FORM by FORMNAME is currently open.
Frank
Uhoooo. For an interesting thing. My check of:
_SCREEN.Activeform.name give a name of FORM1 the form saved as History. What name does WEXIST check against?
Frank
I am have some trouble with the forms trying jimoo's suggestion. I wanted to have the form found and a duplicate warning issued, so I wrote the function:
FUNCTION FormOpen
LPARAMETERS cScreenName
LOCAL lFound
lFound = .F.
IF WEXIST(cScreenName)
lFound = .T.
WAIT "This...
Guys, does anyone have a simple routine to detect if a form is open? I would to say:
IF NOT Formopen("History")
DO FORM ("History")
ELSE
WAIT "History Form is already open..." WINDOW NOWAIT
ENDIF
Nothing I have tried seems to work to make Formopen()
Frank
Guys, I did ask some time ago about why when I ran BEAUTIFY on some forms and prg files I would get an API Exception error, but not on others. I have found at least one reason. If you use the prefix 'm.' for memory variables in your code the BEAUTIFY program will fail every time. If you...
Mike, here is the wierd part. You said:
Are you launching the modal form from the modeless form? If so, and if the modal form has a default data environment, it will "inherit" the data environment from the modeless form.
That is exactly what I thought. Yet, I can verify that as soon...
This is indeed driving me nuts, now. The PRIMARY (modeless) form is set to a private data session with a data environment all set. It opens and connects the tables without problem. Next and Previous displays show appropriate movement in all tables.
Yet, when I move to another form from the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.