Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Include form programatically in the project
Message
De
06/03/1998 11:52:46
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
06/03/1998 11:11:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de projet
Divers
Thread ID:
00083000
Message ID:
00083034
Vues:
26
>Thank you Celin,
> But this don't work because my form be called from a routine of a
>class that feed a TreeView object using informations from a table and
>the form's name is resolved by macro &, so when I build the project there
>is no reference to compile this form. You know what I mean?
>
>excuse-me my english again
In fact I didn't mean to click "Build" or "build project" with no options. But still it wouldn't fit to your case I see. With a small prg you could write another small prg that would include all form names, and run it once in project and call "build project".
*Getformnames
select cFormname from FormsTable into array aForms
set textmerge to "stubforms.prg"
set textmerge on
set textmerge delimiters to "[[","]]"   && To be able to send here as HTML
for ix=1 to alen(aForms)
    \do form [[trim(aForms[ix])]] noshow
endfor
set textmerge to
set textmerge off

*stubforms were in project as a dummy prg
build project myProject       && Refresh project
Now you could use & substition and since stubforms is not called anywhere it's just something like a placeholder.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform