Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Issuing a Create/modify Form in a program
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01555837
Message ID:
01555839
Vues:
54
As Craig already said, you can't issue a CREATE FORM command from the VFP runtime - however you can create a table - and forms are tables. (i.e., you can say USE myfrom.scx ).... so if you want to create a form at runtime you have to create it as a table and then issue the COMPILE FORM command. I've done this before and got it to work quite nicely.

>Hi,
>
>I'm issuing CREATE FORM and MODIFY FORM inside a program and getting error message 1001 (Feature is not available).
>
>But, looking VFP help file, in the CREATE FORM it says:
>
>NOWAIT
>Continues program execution after the Form Designer has been opened. The program doesn't wait for the Form Designer to be closed, but continues execution on the program line immediately following the line that contains CREATE FORM NOWAIT. If you omit NOWAIT, when CREATE FORM is issued in a program, the Form Designer is opened and program execution pauses until the Form Designer is closed.
>
>SAVE
>When issued in a program, leaves the Form Designer open after another window is brought forward. Including the SAVE option has no effect when issued from the Command window.
>
>In the MODIFY FORM VFP help file it says:
>
>NOWAIT
>Continues program execution after the Form Designer has been opened. The program doesn't wait for the Form Designer to be closed, but continues execution on the program line immediately following the line that contains MODIFY FORM NOWAIT. If you omit NOWAIT, when MODIFY FORM is issued in a program the Form Designer is opened and program execution pauses until the Form Designer is closed.
>
>NOWAIT is effective only from within a program. It has no effect on MODIFY FORM when issued from the Command window. If NOWAIT is included with the METHOD clause, be sure to place NOWAIT before the METHOD clause or NOWAIT will be ignored.

>
>SAVE
>When issued in a program, leaves the Form Designer open after another window is brought forward. Including the SAVE option has no effect when issued from the Command window.
>
>Why I'm getting the error message?
>
>TIA
>
>Fernando
ICQ 10556 (ya), 254117
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform