Here is a question. How do I modify a file from a top level form?
I have a top level form set up as a standalone EXE, which opens a file and runs a program that generates cursors based on the file. The form has command buttons which preview reports based on the generated cursors. I have code in the command click events to resize the form to allow the report preview to be viewed, since the DEFINE WINDOW does not make a new window on the desktop even when I include the IN DESKTOP clause. That solved the problem of viewing the report previews, not the solution I wanted, but it works. Now I am confronted by the fact that I want the user to be able to edit the file from another command button on the form, to make changes based on the data displayed in the form reports. The problem of not being able to DEFINE WINDOWs in the desktop has stopped me cold. No matter what I try, the MODI FILE command will not display the edit window anywhere except the default FoxPro _screen. Since the form is running as a standalone top level form, I have not been able to figure out how to include this functionality.
I have been trying to create a NotePad object, but these attempts have been unsuccessful.
Please help.
Mike D.
mdevlin@ajdebruin.com
I have a top level form set up as a standalone EXE, which opens a file and runs a program that generates cursors based on the file. The form has command buttons which preview reports based on the generated cursors. I have code in the command click events to resize the form to allow the report preview to be viewed, since the DEFINE WINDOW does not make a new window on the desktop even when I include the IN DESKTOP clause. That solved the problem of viewing the report previews, not the solution I wanted, but it works. Now I am confronted by the fact that I want the user to be able to edit the file from another command button on the form, to make changes based on the data displayed in the form reports. The problem of not being able to DEFINE WINDOWs in the desktop has stopped me cold. No matter what I try, the MODI FILE command will not display the edit window anywhere except the default FoxPro _screen. Since the form is running as a standalone top level form, I have not been able to figure out how to include this functionality.
I have been trying to create a NotePad object, but these attempts have been unsuccessful.
Please help.
Mike D.
mdevlin@ajdebruin.com