Do Form
This command runs a form or formset from its SCX file.
Usage |
DO FORM FormName | ? [ NAME oName ] [ LINKED ] [ WITH ParameterList ] [ TO uResult ] [ NOREAD ] [ NOSHOW ] |
The NOREAD clause is supposed to replace the #NOREAD generator directive of FoxPro 2.x. That directive told the screen-generator program to create code to paint the screen, but not to include the READ that activated the controls. In our tests, DO FORM whatever NOREAD (where whatever is a converted FoxPro 2.x screen) errors out because the variables for the controls don't get created at the right time. With the NOREAD clause, events fire in a really weird order. |
The original release of VFP 7 has a subtle but nasty error. If you run a form within an executable, then close the form, the process retains a hold on that form until the executable is finished. That means, among other things, that you can't delete the form from within the EXE. Not something we do every day, but now and then, weird situations like this do come up. Fortunately, the problem is fixed in Service Pack 1. |
Example |
DO FORM MyForm NAME oApp.aActiveForms[nFormCnt] |
See Also |