>If you have the default program or form set it will be the first thing that runs when you run a compiled .exe. Simply build the exe and run it from VFP or outside of VFP. If you haven't excluded files from the project, VFP will compile all the necessary files into your exe for you.
>
>If you need to create a distribution, run the setup wizard.
do setup
do mainmenu
do evloop
do cleanup
Procedure SETUP
set default to '\\peewee2\dbdev\bftmax98'
&& What is best way to make this ask the
&& user where the data is just one time?
on shutdown do CleanUp
set century on
set mark to '.'
set date to ansi
set deleted on
set multilocks on
set escape on
set optimize on
set refresh to 0,0
set sysmenu to default
set talk off
set view off
_Screen.Icon = 'DEVCFT.ICO'
set sysmenu off
Return .t.
Procedure MainMenu
Do Menu01.mpr
return .t.
Procedure EvLoop
do form Splash
do form OrdProc noshow
do form CatBrows1 noshow
do form CatBrows2 noshow
do form MaxBar01
&& Since forms take a long time
&& to load data sessions, I thought
&& this might trick them into all
&& loading at app "boot time".
read events
return .t.
Procedure CleanUp
clear events
wait window 'Shutdown trap from setup environment' nowait
clear all
close all
flush
quit
return .t.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only