Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Include form programatically in the project
Message
From
06/03/1998 11:52:46
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
06/03/1998 11:11:34
General information
Forum:
Visual FoxPro
Category:
Project manager
Miscellaneous
Thread ID:
00083000
Message ID:
00083034
Views:
30
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform