Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
After building under VFP9 new forms are missing from exe
Message
De
15/12/2005 10:59:19
Mike Yearwood
Toronto, Ontario, Canada
 
 
À
15/12/2005 09:11:57
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Divers
Thread ID:
01078041
Message ID:
01078292
Vues:
24
Drew Speedie showed one way to deal with this problem is to have a never-to-be-called procedure in the main prg file.

PROCEDURE PMFAKEOUT
EXTERNAL FORM form1
EXTERNAL FORM form2
ENDPROC

In MaxFrame a project hook updates this procedure as new files are added to the project. When you rebuild your project, everything listed there gets pulled in.

This has been in place since VFP5 at least. It doesnt' just apply to execscript, but also to macro-substituted references.

>>Old version of the application was build under VFP7.
>>New version was developed using the old projectunder VFP9. Forms are not called directly like:
>>do form formname
>>
>>but formnames are in a table included in the project - table has field action:
>>DoForm("formname",'parms')
>>FormMethod('methodname','parms')
>>etc.
>>An 'executor' object handles what to call based on that data. This worked very well in previous version.
>>
>>New forms/classes/frx/prg/prg based classes etc were added in new project (files needed are explicitly added -included- to the project). After build however the exe complains about missing files. ie:
>>
>>c:\exepath\formX.scx doesn't exist.
>>
>>but that form is explicitly included in project. Did anybody encounter this and know of a quick solution? (I'm going to add
>>if .f.
>>do form ...
>>do this
>>do that
>>endif) but I don't think it'd do.
>>TIA
>>Cetin
>
>Solved somewhat (still parts to check). Cause was ExecScript(). If form is called via execscript then it fails (a bug or a by design???) and doesn't see files included in project.
>Cetin
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform