Hello, all!
I'm having an issue with a program in VFP 9 SP2. I'm writing a program that has a main form ( called "frmMain"). This form has buttons which call other forms.
What I'm trying to do is this - when a user clicks a button (we'll use "CSV to DBF" as my example), this is what will happen:
In frmMain, this code is called by clicking that button:
1. frmMain.visible = .f.
2. do frmCsv2dbf
The called form "frmCsv2dbf" then does its thing. In the form's Release property, I have the following line:
frmMain.visible = .t.
As you can see, I'm trying to make the main form invisible while the other form does its work, then bring its visibility back once the other form is finished.
However, I've hit a bit of a snag. This works flawlessly if I choose "run" while I'm modifying the Project itself. When I Build an exe and run that exe, it does not work. frmMain does lose its visibiliy. frmCsv2dbf does run. But when frmCsv2dbf tries to set frmMain visibility to .t., I get an error message stating that FRMMAIN is not found.
Any ideas as to why this is happening and how I can fix it?
Thanks!
I'm having an issue with a program in VFP 9 SP2. I'm writing a program that has a main form ( called "frmMain"). This form has buttons which call other forms.
What I'm trying to do is this - when a user clicks a button (we'll use "CSV to DBF" as my example), this is what will happen:
In frmMain, this code is called by clicking that button:
1. frmMain.visible = .f.
2. do frmCsv2dbf
The called form "frmCsv2dbf" then does its thing. In the form's Release property, I have the following line:
frmMain.visible = .t.
As you can see, I'm trying to make the main form invisible while the other form does its work, then bring its visibility back once the other form is finished.
However, I've hit a bit of a snag. This works flawlessly if I choose "run" while I'm modifying the Project itself. When I Build an exe and run that exe, it does not work. frmMain does lose its visibiliy. frmCsv2dbf does run. But when frmCsv2dbf tries to set frmMain visibility to .t., I get an error message stating that FRMMAIN is not found.
Any ideas as to why this is happening and how I can fix it?
Thanks!